Are there any script functions for working with dates and times?
I’d like to work with the date and time as an integer so I can get the difference in hours between two date variables. I can do Date1 - Date2 but the result is another date. I’m just wanting the hours.
Something like JavaScripts Date.getTime() would be very helpful.
If you need to do any work with the IFS calendars, consider looking at the work_time_counter_API. This API provides methods for calculating numbers of working days between two dates or finding the next valid working day.
If you need to do any work with the IFS calendars, consider looking at the work_time_counter_API. This API provides methods for calculating numbers of working days between two dates or finding the next valid working day.
Thanks for the replies. I stopped getting notifications of replies so I apologize for the delay.
On FSM Mobile the database is SQLite so the function I used was strftime() to get the difference in seconds between two dates. rsbisho2’s reply got me on the right track even though the Oracle functions weren’t available to me.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.