Directory Integrator, Version 7.1.1
When working with dates in IBM® Tivoli® Directory Integrator, this implies using instances of java.util.Date. Armed with any of the available scripting languages, you can implement your own mechanism for handling dates; however, this is not a common practice.
Here is a simple JavaScript example that handles dates. This code can be placed and started from any scripting control point:
var string_date1 = "07.09.1978";
var date1 = system.parseDate(string_date1, "dd.MM.yyyy");
var string_date2 = "1977.02.01";
var date2 = system.parseDate(string_date2, "yyyy.dd.MM");
task.logmsg(date1 + " is before " + date2 + ": " +
date1.before(date2));
The script code first parses two date values (in different formats) into java.util.Date. It then uses the standard java.util.Date.before() method to determine whether the first date instance comes before the second one. The output of this script is then printed to the log file.