Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date format
Message
From
07/02/2007 16:32:23
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01193399
Message ID:
01193408
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
It's too stupid, but you can't do this with only the transform() function, you must "roll your own" function. Not tested..
Function datewithcentury
lpara dDate
local lcCentury, lcDate
lcCentury=set('century')
set century on
lcDate=TRANSF(dDate , "@KE 99/99/99" )
if set(lcCentury='OFF'
  set century off
endif
Return lcDate
Wait wind datewithcentury(date())

>Thank edward.
>
>I want only with one transform claus...
>
>bernhart
>
>
>
>>>Hi all,
>>>
>>>Sorry in advance for my stupid question...
>>>
>>>I want a date on format 99/99/99 With transform claus.
>>>
>>>WAIT WIND TRANSF( Date() , "@KE 99/99/99" ) && century off
>>>
>>>This command do'nt function...
>>>
>>>
>>>Thank in advance
>>>
>>>bernhart
>>
>>
>>SET CENTURY on
>>WAIT WINDOW DATE()
>>SET CENTURY off
>>WAIT WINDOW DATE()
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform