use mysql compatible date format