[thelist] ASP.NET - Date Logic Question in VB !!
Casey Crookston
casey at thecrookstons.com
Thu Oct 7 09:13:09 CDT 2004
> Use DateTime.DayOfWeek to give you the number of the current day, then
it's
> easy to derive the date of the previous Monday from that by simple
> subtraction, e.g. (C#):
>
> DateTime dtToday = DateTime.Now;
> DateTime dtMonday = dtToday.AddDays(1-dtToday.DayOfWeek);
>
> Hope that helps,
>
> Gary
How would that look in VB? Which bring up another question... I'll start a
new thread.
Casey
More information about the thelist
mailing list