>Hi!
>
>DO you guys have in Visual FoxPRO something equivalent to DateValue() in Visual Basic? In VB this function returns the Date of a DateTime Field, or object given as a parameter, is only a way I know in VB, I dun know about in FoxPro!
>
>here is an example:
>
>Dim MyReturnedDate as String
>MyReturnedDate = DateValue(Now()) ' Return a date.
>
>
>Remarks
>If the date argument includes time information, DateValue doesn't return it. However, if date includes invalid time information (such as "89:98"), an error occurs.
In VFP it's :
MyReturnedDate = ttod(datetime())
where MyReturnedDate is a date type.
MyReturnedDate = dtoc(ttod(datetime()))
where MyReturnedDate is char type. There are plenty of other conversion functions.
Cetin