Dates in Crystal 11
Posted on 2011-03-03
I have written a report which includes an order date. The problem is, that in some cases the order date is coming up as a different date than what is in the database. The date differs by 1 day.
I contacted the database administrator and his reply was:
"It could be because of the time zones and the format in which the data and time is stored in the database. In LN, the date and time are stored in data base in GMT time zone where as in the "Display Table Info" screens (within the program), it is shown in the user’s time zone.
When you read from Crystal, I guess you are reading directly from database. Hence, you may get 1 day difference in some cases. In your example, the order is created on 1st Mar 7.30 AM. In data base, this time as stored as 28th Feb 9.30 PM (because there is 10 hrs difference between GMT and Australia time). When you read from the database in Crystal, you get the date as 28th Feb. "
Any ideas how to address this in Crystal??