Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date not displayed properly
Message
De
05/09/2005 09:11:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/09/2005 08:58:16
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01046768
Message ID:
01046772
Vues:
20
>Dear All,
>
>In VFP, the label's caption is created by:
>
>
>this.caption = LEFT(CDOW(Date1),3)+", "+LEFT(CMONTH(Date1),3)+" "+ALLTRIM(STR(DAY(Date1)))
>
>
>However, when i combine to executable file, in ShowWindow = 2 (As Top Form),
>it seems it uses the system setting, which is in traditional chinese. How can I avoid that or detect it?
#define DAYNAMES "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday"
#define MONTHNAMES "January,February,March,April,May,June,July,August,September,November,October,December"
? myDateFormat(DATE())

Function myDateFormat
LPARAMETERS tdDate
RETURN LEFT(GETWORDNUM(DAYNAMES,DOW(m.tdDate,2),','),3)+', '+;
       LEFT(GETWORDNUM(MONTHNAMES,month(m.tdDate),','),3)+' '+;
       PADL(DAY(m.tdDate),2,'0')
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform