Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MS SQL Datepart methods
- DATEPART(year, GETDATE()) as 'Year',
- DATEPART(month,GETDATE()) as 'Month',
- DATEPART(day,GETDATE()) as 'Day',
- DATEPART(week,GETDATE()) as 'Week',
- DATEPART(hour,GETDATE()) as 'Hour',
- DATEPART(minute,GETDATE()) as 'Minute',
- DATEPART(second,GETDATE()) as 'Seconds',
- DATEPART(millisecond,GETDATE()) as 'MilliSeconds'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement