If you want to insert a date into the database, then do not convert it to another string: convert it to a DateTime value (using ParseExact or TryParseExact). Then use a parameter (of type date) in the query to use this value in the database.
Hans kesting
source share