>Cemal,
>
>To convert datetime() to a character expression use the TTOC function.
>
>Ex. x=ttoc(datetime())
>
>You could then simply use string functions to pull out the specific values you want.
The TTOC() function has an option to extract just the time portion:
cTime = TTOC(DATETIME(),2)
And to get just the date portion, use DTOC():
cDate = DTOC(DATETIME())