Identificar e buscar data

Preciso escrever um código onde é identificado que a data atual é segunda-feira, e escreva a data de sexta-feira anterior.

Hi @Marcos_Rogerio_Kusten

How about the following?

image

Today.DayOfWeek = DayOfWeek.Monday
Today.AddDays(7*Cint(Today.DayOfWeek<=DayOfWeek.Friday)+(DayOfWeek.Friday-Today.DayOfWeek)).ToShortDateString

Regards

Olá,

Funcionou, muito obrigado.

Glad to hear that, please remember to close the topic marking as solution

Regards!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.