Dec 29, 2003 #1 rsunra IS-IT--Management Sep 30, 2003 53 AU G'day I have following formula and I would like the time to be displayed in a different timezone for the report ie add 3 hours of 2.5 hours. datetime (Totext ({Event_Date}, "dd/MMM/yy" & " " & Totext ({Event_Time}, "HH:mm:ss")
G'day I have following formula and I would like the time to be displayed in a different timezone for the report ie add 3 hours of 2.5 hours. datetime (Totext ({Event_Date}, "dd/MMM/yy" & " " & Totext ({Event_Time}, "HH:mm:ss")
Dec 29, 2003 #2 synapsevampire Programmer Mar 23, 2002 20,180 US What does add 3 hours of 2.5 hours mean? You can add 3 hours to a datetime like this: dateadd("h",3,datetime (Totext ({Event_Date}, "dd/MMM/yy" & " " & Totext ({Event_Time}, "HH:mm:ss")) There's also a UDF which does some timezone stuff: http://www.milletsoftware.com/CUT_Light.htm And depending upon your database and Crystal version, you might have it converted and returned on the server side using a SQL Expression. -k Upvote 0 Downvote
What does add 3 hours of 2.5 hours mean? You can add 3 hours to a datetime like this: dateadd("h",3,datetime (Totext ({Event_Date}, "dd/MMM/yy" & " " & Totext ({Event_Time}, "HH:mm:ss")) There's also a UDF which does some timezone stuff: http://www.milletsoftware.com/CUT_Light.htm And depending upon your database and Crystal version, you might have it converted and returned on the server side using a SQL Expression. -k
Dec 29, 2003 Thread starter #3 rsunra IS-IT--Management Sep 30, 2003 53 AU Thanks! The 2.5 was for South Australia With your help I was able to work it out with the following: DateAdd ("h",2,dateadd("n",30,datetime (Totext ({Event_Date}, "dd/MMM/yy" & " " & Totext ({Event_Time}, "HH:mm:ss"))) Cheers Upvote 0 Downvote
Thanks! The 2.5 was for South Australia With your help I was able to work it out with the following: DateAdd ("h",2,dateadd("n",30,datetime (Totext ({Event_Date}, "dd/MMM/yy" & " " & Totext ({Event_Time}, "HH:mm:ss"))) Cheers