Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simplify Converting Format of Character Time
Message
De
31/01/2008 13:12:24
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Simplify Converting Format of Character Time
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01287573
Message ID:
01287573
Vues:
62
This works but something bothers me about using the RIGHT(RIGHT and I think there must be a simplier way.
S_ToT = "1515"

m.Result = Ttoc(Ctot(Transform(Dtos(Date()), '@R 9999-99-99') + 'T' + LEFT(RIGHT(STR(S_ToT),4),2) + ':' + RIGHT(RIGHT(STR(S_ToT),4),2)), 2)

m.Result = "03:15:00 PM"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform