Date format error fixed