Tramite la proprietà "DayOfYear" è possibile sapere quale giorno dell'anno è il giorno attuale.
Qui di seguito l'esempio.
MessageBox.Show(DateTime.Now.DayOfYear.ToString());
Programmazione .Net, Asp.Net, Entity Framework, MAUI, Sql Server, MongoDB, Filenet e tanto altro materiale informatico.
Nessun commento:
Posta un commento