To get short date pattern of your system:
messagebox.show(System.Globalization.CultureInfo.CurrentCulture
.DateTimeFormat.ShortDatePattern())
To get long date pattern of your system:
messagebox.show(System.Globalization.CultureInfo.CurrentCulture.
DateTimeFormat.LongDatePattern())
Get Current System Date Format
Posted by
Rajesh Rolen
at
Friday, October 23, 2009
Labels: C#.NET , C#.NET and VB.NET Interview Questions , datetime , VB.NET
0 comments:
Post a Comment