[thelist] ASP.NET - Date Logic Question

Casey Crookston casey at thecrookstons.com
Thu Oct 7 08:53:07 CDT 2004


Need a little help with logic... what's the best way to display the date of
the most recent Monday?  In other words, no matter what day of the week it
is, I need to say "Download the newsletter for the week of October 4th,
2004"  Until next week, when it will change to "Download the newsletter for
the week of October 11th, 2004"

Is there a way to derive what day of the week it is as an integer?  Monday =
2, Tuesday=3, etc?

Thanks,

Casey






More information about the thelist mailing list