sql server - Date serial in SQL? -


how do I one day [1-31] ​​and one month [1-12] and one year (all int) Can I change? A date serial in these SQL (without converting into varchar)?

Zero 1 January 1900 is in SQL, so you can use it:

  DATEAD (day, @delge -1, DATEADD (month, @ month-1, DATEADD (year, @ year-1900, 0))  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -