Varible Date

Hola,

Tengo una duda, como puedo crear una variable tipo datetime, que me muestre el dia siguiente al actual, ejemplo:
si hoy es jueves, me muestre que el dia siguiente viernes

1 Like

Hello @Mike99

Yes.
Next Day - varDateTime.AddDays(1).Tostring(“dd-MM-yyyy”)
Previous Day - varDateTime.AddDays(-1).Tostring(“dd-MM-yyyy”)

or

DateTime.now.AddDays(-1)

Does it help you?

2 Likes

If you are looking for the day not the date as @KMota mentioned above, see the below

DateTime.DayOfWeek Property (System) | Microsoft Learn

Puede crear una variable de fecha y hora y asignar el valor como:
VarFecha = DateTime.Now.AddDays(1)

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