angel7170
asked on
How to convert a Julian date to normal date in format mm/dd/yyyy hh:mm:ss
Hi,
How to convert a Julian date to normal date in format mm/dd/yyyy hh:mm:ss using Crystal reports formula?
The data stored for date fields are in format like:
1,222,196,236.00
1,222,196,178.00
Any help is greatly appreciated? Thank you
How to convert a Julian date to normal date in format mm/dd/yyyy hh:mm:ss using Crystal reports formula?
The data stored for date fields are in format like:
1,222,196,236.00
1,222,196,178.00
Any help is greatly appreciated? Thank you
ASKER
Thank you so much for your reply.
You are right. It is a Unix date stamp.
But when I used your formula it converted
1,220,560,264.00 - 9/4/2008 8:31:04PM but the date that shows on the application is 9/4/2008 4:31:04 PM.
What could the difference in the time?
please help?
Thank you
You are right. It is a Unix date stamp.
But when I used your formula it converted
1,220,560,264.00 - 9/4/2008 8:31:04PM but the date that shows on the application is 9/4/2008 4:31:04 PM.
What could the difference in the time?
please help?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks again.
I tried it, but there is like an hour difference.
So I tried using, DateAdd("h",-4,DateAdd("s" ,{mydataba se.myfield },Date(197 0,01,01)))
It pulled the correct date. Is this correct? Will it affect any daylight saving time later?
Please advice.
I tried it, but there is like an hour difference.
So I tried using, DateAdd("h",-4,DateAdd("s"
It pulled the correct date. Is this correct? Will it affect any daylight saving time later?
Please advice.
If you go to daylight savings time, you will have to account for the time change.
GMT does change with daylight savings.
mlmcc
GMT does change with daylight savings.
mlmcc
or else you can directly use
ShiftDateTime(DateAdd("s", {mydatabas e.myfield} ,Date(1970 ,01,01))," UTC,0", ""),
it will take care 4 and 5 hours daylight time saving issue
ShiftDateTime(DateAdd("s",
it will take care 4 and 5 hours daylight time saving issue
try this:
//Add Seconds to Jan 1, 1970
DateAdd("s",{mydatabase.my