I'm relatively new to SQL and need to do the following
- Split a Date and Time
- Change the Date
- Concatenate the New Date with Original Time
Any help on this would be greatly appreciated as Google searches haven't found me anything yet!
Thanks Paul
I'm relatively new to SQL and need to do the following
Any help on this would be greatly appreciated as Google searches haven't found me anything yet!
Thanks Paul
Just use the DATEADD
function if you want to change part of an existing DATETIME value.
Returns a specified date with the specified number interval (signed integer) added to a specified datepart of that date.
For example, if you want to add a month to an existing day:
DATEADD(mm, 1, mydate)