Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time in C#?
Message
 
 
À
21/06/2013 17:34:50
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01576867
Message ID:
01576893
Vues:
24
>
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform