Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Format in String Builder
Message
 
 
To
03/06/2014 13:09:19
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01601157
Message ID:
01601214
Views:
33
>>
>>sbResult.AppendFormat("{0,20}", row.Field<DateTime?>("date_time").ToString("G"));
>>
>>But how to get rid of last AM/PM (BTW, not sure why VFP is removing it as the time will be ambiguous). Same thing of getting rid of last 3 chars?
>
>It shows you sample output from the different formats. All you have to do is read ...

If you saw in my response to Gregory, I think VFP result was wrong. I already sent email to my colleagues and they seemed to confirm it. So, I will be just using g format.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform