Apr 23, 2008 #1 sand133 Programmer Jun 26, 2004 103 GB Hi, does anyone know how I can achieve the following in c# as a string... (1) The current year (2) The current month (3) The current Day in the following format 20080422 im having problem with the 04 bit, DateTime.Now.Month.ToString() returns 4 not 04. thanks
Hi, does anyone know how I can achieve the following in c# as a string... (1) The current year (2) The current month (3) The current Day in the following format 20080422 im having problem with the 04 bit, DateTime.Now.Month.ToString() returns 4 not 04. thanks
Apr 23, 2008 #2 earthandfire Programmer Mar 14, 2005 2,924 GB [tt]DateTime.Now.Month.ToString("00")[/tt] Hope this helps. Upvote 0 Downvote
Apr 23, 2008 Thread starter #3 sand133 Programmer Jun 26, 2004 103 GB thank you brother Upvote 0 Downvote
May 14, 2008 Thread starter #4 sand133 Programmer Jun 26, 2004 103 GB does anyone know how do it in SQL, thanks Upvote 0 Downvote
May 14, 2008 #5 jmeckley Programmer Jul 15, 2002 5,269 US forum 183, or to stress the gray matter use Sql BOL <F1> from QA and http://www.google.com/search?q=tsql+datetime+functions Jason Meckley Programmer Specialty Bakers, Inc. Upvote 0 Downvote
forum 183, or to stress the gray matter use Sql BOL <F1> from QA and http://www.google.com/search?q=tsql+datetime+functions Jason Meckley Programmer Specialty Bakers, Inc.