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:
00538510
Views:
10
>>>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>


Thanks for the timing info ... I'll tuck that in my memory!

Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Reply
Map
View

Click here to load this message in the networking platform