Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please tell me how to assign a value to a date variable
Message
From
29/11/2005 15:24:32
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01072929
Message ID:
01072988
Views:
26
>Hi,
>>Please tell me how to assign to a variable xMyDate the value January 1st of the current year.
>
>Sure there are more elegant ways but:
>xMyDate = CTOD("1/1"+STR(YEAR(DATE())))
>

But this code depends on your SET DATE setting, while the DATE() function is independent of it.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform