JavaScript for calculating time sheets in Adobe PDF. Specifically need to calculate time in and time out using 12 hour time clock. Example time in 4:00 pm and time out 4:00 am. Time in needs to be shown in standard time format NOT military time format. I have a script, but it does not calculate correctly when the hours roll from one day into the next 4:00 pm to 4:00 am.
Hi, I looked at your attachment, and I can do this job. In that file, time in and time out shows in default time format not military time format. Please let me know exactly what kind of issues you have . Thank you. Fei
Hi! It sounds like you're having some issues manipulating datetime objects in Javascript. This can always be a little tricky. However, I believe a solution should be fairly straightforward using a library like Moment.js. I've worked for two employers that use this library to calculate and format times. I'd love to take a look at your code and see if I can help!