Tuesday 11 December 2012

How to show only date without time in c#

Use following Code to achieve this:

 string strDate = DateTime.Now.ToString("d");

OutPut : 12/12/2012

0 comments:

Post a Comment


                                                            
 
Design by Abhinav Ranjan Sinha