Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Day (date)
Message
From
30/07/2001 19:28:04
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00537530
Message ID:
00537534
Views:
10
Hi Moises,
dDate  = {01/02/2001}
cDay   = PADL(DAY(dDate),2,"0")
cMonth = PADL(MONTH(dDate),2,"0")
Or

dDate  = {01/02/2001}
cDay   = RIGHT(DTOS(dDate),2)
cMonth = SUBSTR(DTOS(dDate),5,2)
Hope this helps,
Gavin...

>from date date = 03/21/2001
>
>
> D = day (date)
>
>
> It returns 3
>
> How can I return 03
>
>
> Thanks
>
> Moisés
Previous
Reply
Map
View

Click here to load this message in the networking platform