Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Long Date in English
Message
 
 
À
19/08/2003 14:59:00
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00821522
Message ID:
00821611
Vues:
16
Tim,

You can create your own UDF that would format date any way you want. For example
FUNCTION DateToEnglish(tdDate)
RETURN IIF(EMPTY(tdDate), "", ;
	STR(DAY(tdDate),2) + " " + ;
			GETWORDNUM("January,February,March,April,May,June," + ;
				"July,August,September,October,November,December", ;
    MONTH(tdDate), ",") + ;
		STR(YEAR(tdDate),5)	)
>In a report date field you can set the format to @YL to get like “18 August 2003”. But this is sensetive to the format set in Control Panel->Regional Settings. Meaning if Swedish you get “den 18 augusti 2003”. Is there a way to get the long English format without changing the general setting
>on every computer?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform