improved Date.toString() and constraint start/end date