Can I create a date using SQL Server 2005?
Example, if I have year = 2010, month = 11 and day = 2, how can I convert or create it in datetime?
Below, if we write it in javascript
var date = new Date(2010, 10, 2, 0, 0, 0, 0);
and this is with oracle
SELECT TO_DATE('2010-11-02', 'YYYY-MM-DD') FROM DUAL
thank
source
share