date - DateTime Utility for ASP.net -


i wondering if suggest utility library has useful functions handling dates in asp.net taking away of leg work have when handling dates?

subsonic sugar has nice functions:

http://subsonichelp.com/html/1413bafa-b5aa-99aa-0478-10875abe82ec.htm http://subsonicproject.googlecode.com/svn/trunk/subsonic/sugar/

is there better out there?

i wanting work out start(mon) , end(sun) dates of last 5 weeks.

i thinking this:

 datetime = datetime.now;      while(now.dayofweek != dayofweek.monday)     {         now.adddays(-1);     }      for(int i=0; i<5;i++)     {         addtodateslist(now, now.adddays(7));         now.adddays(-7);     } 

but seems crappy? plus not want because need time of start date 00:00:00 , time of end date 23:59:59

is there specific problem trying handle dates? if existing date api in .net can handle problem cleanly, see no reason consider 3rd party library it. when in .net, had deal dates quite bit, , standard libraries provided fair amount of functionality us.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -