Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get hour value return in 12 hour format ?
Message
 
À
21/04/1999 11:51:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00210588
Message ID:
00210594
Vues:
25
>I want to get the value of hour from the system time, but i want the return value in the 12 hour fromat.
>As i know the hour(datetime()) or hour(time()) also return the 24 hour format even though use set hours to 12 .
>Any one know how to get it , thanks
>
>regard,
>chang

Why not after getting the value back, check
lnHour = iif( lnHour > 12, lnHour - 12, lnHour )
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform