In SQL Server, for the data type datetime, can I insert like "00-00-0000" from the front end? It is giving an error. I want to insert "00-00-0000" if the user did not enter anything.
In SQL Server, for the data type datetime , can I insert like 00-00-0000
Share
00-00-0000is not a date. If the user didn’t enter anything, and that’s ok, enterNULL. If you really want to show it as00-00-0000on the client side, you can do so usingCOALESCE, e.g.