Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing a date into its simplest format
Message
De
31/01/2008 08:55:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/01/2008 16:49:49
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01287307
Message ID:
01287447
Vues:
10
>What would be the simplest format to store a date? I am looking for a way to store a date value into a memo field. Then, I need to extract that value later. Is there somekind of universal numeric format we could use for that?

There is (are) universal formats.
dateTime.ToString("u"):
2008-01-31 13:20:09Z

dateTime.ToString("s"):
2008-01-31T13:20:09

...

Such formats are easily recognizable as a datetime. In .Net DateTime.TryParse could be used and say in XML data it's simply recognized as a datetime. A numeric format OTOH is developer dependant (IMHO).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform