Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
17-MAY-2004 Date format
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00904674
Message ID:
00904686
Views:
17
>Hi,
>
>The company I work for decided to choose a single date format for all company document and software.
>
>They came up with dd-mmm-yyyy format.
>
>Is there a way to capture a date in a textbox in this format.
>
>So far I've tried this approach without any success
>
>SET SYSFORMATS ON
>SET DATE SHORT
>SET MARK TO '-'
>
>When I use ? DATE() the output is OK but when I capture a date field I still get the dd-mm-yyyy format.
>
>
>Any solution is welcome.

SET DATE DMY will give you 17/05/2004. However, to display it in a text box the with the month name then you'd have to use something like
TRANSFORM(DAY(DATE())) + "-" +;
   LEFT(CMONTH(DATE())) +;
 '-' + TRANSFORM(YEAR(DATE())).
How dates are formatted depends on the user's setting in the control panel under Regional Settings.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform