Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I resolved to convert epoch time but it's giving me 1985-11-15 01:00:00 instead of 1985-11-15 00:00:00. The only difference is the hours.
It would be great if you can help me 🙂
Regards,
Sheetal
Hello,
Could you please let us know which value you are working with?
Is it in milliseconds?
You can use below mentioned function directly in tMap
(row1.epochtime == null || row1.epochtime =="") ? null : (new java.util.Date(Long.parseLong(row1.epochtime) * 1000) );
Please give us some Epoch time examples.
Best regards
Sabrina
Hi Sabrina,
Thank you for your reply.
The epoch value I am working on is: 500860800000
I tried to use "yyyy-MM-dd HH:mm:ss.SSS" but it's still not working.
I used the function you have mentioned, but I am getting an error.
Thanks,
Sheetal
Hello,
What's error are you getting? Are you still having trouble in "hours" for your case?
Best regards
Sabrina