added date functions to util.js