Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple way to get 1st day of current year
Message
From
05/05/2004 16:40:47
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901347
Message ID:
00901360
Views:
23
>>Given the current date I want to get the first day of the year.
>>
>>Parameter: DATE()
>>Wanted: {01/01/2004}
>>
>>Is there a simple way to do this without using the YEAR function and string manipulations?
>
>You're going to have to do one or the other. <g>
>
>DATE(YEAR(DATE()),1,1)

Well, as long as it's concise - and yours was. Guess I'm just lazy today. Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform