Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date not displayed properly
Message
From
05/09/2005 09:11:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/09/2005 08:58:16
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01046768
Message ID:
01046772
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform