J Jeroen Mostert Aug 13, 2008 #2 John said: How can I format 8/1/2008 into Aug-1-2008? Click to expand... http://msdn.microsoft.com/library/8kb3ddd4
John said: How can I format 8/1/2008 into Aug-1-2008? Click to expand... http://msdn.microsoft.com/library/8kb3ddd4
N Netmonster Aug 13, 2008 #3 Experts, How can I format 8/1/2008 into Aug-1-2008? Thank you very much. Click to expand... C# DateTime.Parse("8/1/2008").ToString("MMM - dd- yyy");
Experts, How can I format 8/1/2008 into Aug-1-2008? Thank you very much. Click to expand... C# DateTime.Parse("8/1/2008").ToString("MMM - dd- yyy");
N Netmonster Aug 13, 2008 #4 C# DateTime.Parse("8/1/2008").ToString("MMM - dd- yyy"); Click to expand... sry forgot to complete the year. DateTime.Parse("8/1/2008").ToString("MMM-dd-yyyy");
C# DateTime.Parse("8/1/2008").ToString("MMM - dd- yyy"); Click to expand... sry forgot to complete the year. DateTime.Parse("8/1/2008").ToString("MMM-dd-yyyy");
J John Aug 13, 2008 #5 Thank you so much. Netmonster said: sry forgot to complete the year. DateTime.Parse("8/1/2008").ToString("MMM-dd-yyyy"); Click to expand...
Thank you so much. Netmonster said: sry forgot to complete the year. DateTime.Parse("8/1/2008").ToString("MMM-dd-yyyy"); Click to expand...
A Arne Vajhøj Aug 14, 2008 #6 Netmonster said: sry forgot to complete the year. DateTime.Parse("8/1/2008").ToString("MMM-dd-yyyy"); Click to expand... That code depends on the setup of Windows. On my PC it returns Jan-8-2008 ! Use: DateTime.ParseExact(s, "M/d/yyyy", CultureInfo.InvariantCulture).ToString("MMM-dd-yyyy") to enforce the correct interpretation of the input. Arne
Netmonster said: sry forgot to complete the year. DateTime.Parse("8/1/2008").ToString("MMM-dd-yyyy"); Click to expand... That code depends on the setup of Windows. On my PC it returns Jan-8-2008 ! Use: DateTime.ParseExact(s, "M/d/yyyy", CultureInfo.InvariantCulture).ToString("MMM-dd-yyyy") to enforce the correct interpretation of the input. Arne
C CLGan Aug 15, 2008 #7 [Date type].toString("ddd-MM-yyyy", new CultureInfo("EN-US")), just describe the syntax.