I need the current date so I am writing a below code
dateCreated = new Date();
which returns Thu Dec 05 2013 12:57:48 GMT+0530 (India Standard Time).
But when I am trying to store it into database it is showing an error
I am using DateTime
datatype to store date in SQL Server 2012 database
I even tried using Date datatype but it is showing me error.
Is there any way to do this?
I just want to store date