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:34:51
 
 
To
05/05/2004 16:22:10
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901347
Message ID:
00901357
Views:
28
This message has been marked as the solution to the initial question of the thread.
>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)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform