update date format to support javascript Date object