Last post Dec 04, 2006 11:30 PM by GeorgeZ
Nov 17, 2006 03:02 AM|RKC|LINK
I have asp.net project developed in VS2003 then converted to VS2005 using
Web Application Project Model. every thing seems working perfect but have a problem with date format. to the user i need to show date in M/d/yyyy format. my culture is en-US. but when i check the below code
As CultureInfo = CultureInfo.CreateSpecificCulture(Request.UserLanguages(0))
the output is d/M/yyyy.
But other projects that run on my machine show M/d/yyyy for the same code
Please suggest what are the possible places where i need to check for the datetimepatterns to be M/d/yyyy
Integrate 2 Web Application Project in ASP.NET 2.0
Dec 04, 2006 11:30 PM|GeorgeZ|LINK
DateTimeFormatInfo acctually defines how DateTime values are formatted and displayed, depending on the culture.
For more details, please refer
There is sample code in this link. hope this helps.