Please enable JavaScript to view this site.

ESL Documentation

Navigation: » No topics above this level «

Q3 How can I use the Datelib functions to do simple Date Arithmetic?

Scroll Prev Top Next More

The following routine makes use of the latest function "JulianToDate", which combined with the older "DateToJulian" function make most date arithmetic a simple case of converting to Julian dates performing the calculation, then converting back to a traditional "Gregorian" date. The routine finds the next working day, on the simple basis that "Saturday" and "Sunday" are the only non-working days. The routine does not validate the input date. However, this function could be added by using the "Validdate" function.

CodeSamples_Q03