Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)


By Roberto Filippi,

ufnDateTimeSerial returns the smalldatetime for year, month, day, hour, minute

ufnDateSerial returns the smalldatetime for year, month, day

ufnTimeSerial returns the smalldatetime for hour, minute (based on 1st january 1900)

ufnDateTimeSerial (year, month, day, hour, minute) is equivalent to ufnDateSerial (year, month, day) + ufnTimeSerial (hour, minute)

ufnStrCat and ufnStrRAlign are support utilities

Total article views: 662 | Views in the last 30 days: 1
Related Articles

smalldatetime data type usage.

smalldatetime data type usage


returning data for a given month

returning data for a given month



i am trying to insert the date in the format of mm/dd/yyyy.. But i keep getting the time in the colu...


Month Name

Function to return the Month Name for month number input


Function to calculate and return age in text to closest minute between

Calculates and returns age in text to closest minute between 2 datetimes, eg: 2 Years, 4 Months, ...


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones