Hi all,
I am working on a report that retrieve information from a database. In that database, the datetime is stored as a string. Is there any possible way I can convert it to datetime in the crystal reports?
What's the format of the string? Depending on its String format, you can try using CDateTime in a formula. If it's not in an acceptable format, it'll let you know:
If it's in the right format, then the CDate function may work. Otherwise, you will have to break down the string into numbers and apply the numbers in the datetime function
So use the MID function to extract the elements required to fill the cdate function with the values (note they are converted to numeric in this example).
cdate uses (year,month,day)
If you still have difficulties, post technical information.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.