Sample code Real date to Clarion date(Vise Versa)

Can someone have an idea on how to create real date to clarion date. Please help me. Thanks

Do you perhaps mean something like this?

clarionDate = DeFormat('2015-04-21', @D10-)

DEFORMAT (return unformatted numbers from string)
DEFORMAT(string [,picture])

or you can use DATE function…
DATE(month,day,year) returns the long value of Clarion Date

What do you mean by “real date”?