You can use DATEDIFF function: for example
DATEDIFF
(m,'1/1/2007',getdate())as monthDiffDATEDIFF(d,'1/1/2007',getdate())as dayDiff
|||Try the DateDiff function
|||
try datediff function is very helpfull
Thanks
You can use DATEDIFF function: for example
DATEDIFF
(m,'1/1/2007',getdate())as monthDiffDATEDIFF(d,'1/1/2007',getdate())as dayDiff
|||Try the DateDiff function
|||
try datediff function is very helpfull
Thanks
No comments:
Post a Comment