Solved

Dates in Crystal 11

Posted on 2011-03-03
2
350 Views
Last Modified: 2012-05-11
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??

 

0
Comment
Question by:spectrum17
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
Comment Utility
If all datetimes are stored as GMT then you could write a formula to change the display to the local time.  That is what your application is doing.

A formula like DateAdd ('h',10,{DateTimeField})

Remember you may have to account for daylight savings time.  GMT doesn't change.

mlmcc
0
 

Author Closing Comment

by:spectrum17
Comment Utility
Brilliant.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now