General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only