Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type a string date
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01496168
Message ID:
01496182
Views:
57
You need to use ttoc for the datetime value.
Do you now want to find out the type of the string variable depending on
'20110114'

vs.

'20110114092723'
?

>sorry for my poor english....
>
>first sample
>
>a = dtoc( datetime() , 1 ) 
>
>?  something() return 'T'  && i want 'T'
>
>
>second sample
>
>a = dtoc( date() , 1 ) 
>
>?  something() return 'D'  && i want 'D'
>
>
>
>>Bernhart,
>>
>>maybe I have a bad day, but I don't understand what you want.
>>
>>>hi all,
>>>
>>>a = dtoc( datetime() , 1 ) OR a = dtoc( date() , 1 )
>>>
>>>I want a formule that give "T" or "D" when i type A
>>>
>>>how can i have this ?
>>>
>>>
>>>thank in advance
>>>
>>>bernhart
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform