I'm using SQL Server 2005 and I have a DateTime column.
How can I multiply the hour and minute of a DateTime column by 1.2 and return the new value
So something like:
SELECT
MyColMinute = DATEPART(minute, myCol) * 1.2
MyColHour = DATEPART(second, myCol) * 1.2,
MyCol
From NyTable
Of course the above won't work!
So for example myCol might have a value of '1900-01-01 00:30:00.000'. I want to increase the time portion by 20% (*1.2), so I want the return value to be '1900-01-01 00:36:00.000'. I actually want to return a valid DataTime, not the minutes & seconds as separate values...