Actually, I need to perform calculations on it. I need to calcualte the elapsed time between a datetime field in my database, and the datadate/datatime.
In Crystal 8.5, you should be able to 'bundle' them, something like
DateValue (datepart("yyyy", datadate),
datepart("m", datadate), datepart("d", datadate),
datepart("h", datatime), datepart("n", datatime))
This gives you year, month, day, hour and minute. You can then use 'DateDiff' to make comparisons, for hours it would be
DateDiff("h", @YourDate, otherdate)
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.