DateName - Month not July we require 07
hi:
i puzzled following:
if execute "
datename(mm, getdate())", result of july. want month in decimal '07'
can explain change command here?
suresh
use datepart instead of datename.
datepart
(mm, getdate())
regards
SQL Server > SQL Server Database Engine
Comments
Post a Comment