date from datepicker being inserted in database
app crash resolved