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

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

gtk - Python Window Resize -

c# - read full xml file data over tcp -