fixed an error in date_demo