added formatted iso 8601 datetime from function argument