use proper data format to allow --date param to be specified