fixed date bugs

fixed date bugs