You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
I am trying to figure out how to take to string amounts (military times) and get a difference between them
Begin Time : "08:00"
End Time : "17:15"
and get 9.25 hours out of that...
Been working on it for a while and cannot figure it out. Any ideas?
Thanks,
Offline
Hello
Parsing the string to Date and get the milliseconds.
expression on tMap:
((TalendDate.parseDate("HH:mm",row1.endTime).getTime()-TalendDate.parseDate("HH:mm",row1.beginTime).getTime())/3600)/1000dBest regards
Shong
Online
Pages: 1