I have date in format 2013-08-05 12:45:56
. But I want to store this in format 2013-08-05 00:00:00
in database.
The thing I want is, I don't want to save the time in database.
I am using:
cmd.Parameters.AddWithValue("@VoucherDate", VoucherDate.Date);
But still it is saving the time. Any suggestions?