Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time in C#?
Message
 
 
To
21/06/2013 17:34:50
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01576867
Message ID:
01576893
Views:
25
>
>var myTime = "10:01 AM";
>var myDate = DateTime.Parse(myTime);
>var myHours = myDate.Hour;
>var myMinute = myDate.Minute;
>
I figured this out already, but I also need to know is it AM or PM
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform