Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel date formatting
Message
De
10/02/2003 14:44:12
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Excel date formatting
Divers
Thread ID:
00751583
Message ID:
00751583
Vues:
65
Hi all

Does anyone have program that can convert / format dates / datetimes like Excel does?

I know I can ...


LPARAMETERS tuDateOrTime
RETURN ;
RIGHT("00"+ALLTRIM(STR(MONTH(m.tuDateOrTime))),2)+"/"+;
RIGHT("00"+ALLTRIM(STR(DAY(m.tuDateOrTime))),2)+"/"+;
ALLTRIM(STR(YEAR(m.tuDateOrTime)))


But something like transform(date(),"MMM-DD-YYYY") to get Feb 10, 2003 seems easier than the current options.

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform