Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Day (date)
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00537530
Message ID:
00537930
Views:
13
The DAY() function is not affected by SET DATE. It always returns the numeric day of the month.

>It looks as though the Day() function is returning the month! Perhaps you want:
>
>lcWasDate = set('date',1)
>set date to mdy
>d = padl(day(date),2,'0')
>set date to &lcWasDate
>
>
>
>>from date date = 03/21/2001
>>
>>
>> D = day (date)
>>
>>
>> It returns 3
>>
>> How can I return 03
>>
>>
>> Thanks
>>
>> Moisés
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform