Simplified dateToIlib by using the unixtime option of newInstance().
Unrestricted dateToIlib from Gregorian to all calendar types.