introduced dateformat formating parameter to older functions