Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help WIth C# TTOC(datetime(),2) Equiv
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Help WIth C# TTOC(datetime(),2) Equiv
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01273992
Message ID:
01273992
Vues:
60
I need to include the whole datetime system value into a string but formatted in YYYYMMDDHHMMSS format, I'm sure this is really easy to do in C#...but I haven't found it yet. Hoping someone knows off the top of their head.
string DateString = System.DateTime.Now.ToString()
Returns: 12/7/2007 11:33:55 AM

How can I have it return a string in the same format as the vfp TTOC(DATETIME(),1)?

Desired Result is: 20071207113355

Thanks

Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform