added in a toISOString helper method to match the javascript date object's toISOString method