Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Format
Message
From
27/10/2006 04:11:10
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
27/10/2006 03:55:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01164913
Message ID:
01164923
Views:
10
Yes you can Michael and it will take care of the language also, all depends onthe operaring system language you are running, so that code in english will be 27-Oct-2006 while in portuguese will be 27-Out-2006.
That's one of the many advantages of .net over VFP.
Now on mine VFP example you are right since CMONTH returns always in english, so if you wanted on a diferente language then you would need to create an array of months like you said before.

>>Michel the same can be acomplish with only 1 line of code
>>
>>lcDate = datevar.ToString("dd-MMM-yyyy")
>>
>>Now if you want to use the date seperator that's defined in regional settings just replace the - with a /
>
>I don't think you can control the casing of the month. It doesn't also take care of the current language being used.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform