The date issue can happen for a number of reasons, the most common of which is passing the date to the database in the wrong format.
the database will not accept the date if it is passed in using any format other than:
if you try to pass the date as:
it will not store the date properly because it does not match the date format the database will accept.
you need to convert the date format to yyyy-mm-dd format before storing it to the database.