fix date argument parsing