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:
00537568
Views:
14
>>from date date = 03/21/2001
>>
>>
>> D = day (date)
>>
>>
>> It returns 3
>>
>> How can I return 03
>>
>>
>> Thanks
>>
>> Moisés
>
>
>
>D=TRANSFORM(DAY(DATE),'@L 99')
>
As always, many ways to skin a fox. But I like the PADL() solution (that's the one I normally use). A quick unscientific timing of these functions in a loop showed PADL() to be over 40% faster. And using "@L 99", although there is nothing seriously wrong with it, looks to me a little '2.6ish'. <g>


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform