Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to adjust data date/time for time zones

Status
Not open for further replies.

dg3249

MIS
Jun 11, 2002
41
US
Hi,

I need to adjust the data date/time fields for Australian time. Not sure how to go about this. Any help would be appreicated.

 
Use a formula on your date fields. Depending on your Crystal version, you can use DateAdd for this.
Code:
DateAdd("h",[Enter the time difference here without the square brackets, like -10 or something], {Database.Date})
Naith
 
Hopefully your request is that the datetime fields be displayed in some Australian timezone, wich is easily accomodated by setting the PC to the appropriate timezone.

Or perhaps you have to serve multiple clients.

One of the strongest contributors here (Ido Millet) has the best solution I've seen for this in the form of a UDF.


This converts timezones.

Oracle 9i allows for timestamp with timezones embedded, which I've used successfully on one international project, but Crystal does not support them, so you'd have to convert the timezone in a View/Stored Procedure.

-k kai@informeddatadecisions.com
 
I am using the special fields data date and data time. Can you use the above formula with these special fields.

Diana
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top