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

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

DateTimeSerial

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: 659 | Views in the last 30 days: 3
 
Related Articles
FORUM

smalldatetime data type usage.

smalldatetime data type usage

FORUM

returning data for a given month

returning data for a given month

SCRIPT

Month Name

Function to return the Month Name for month number input

FORUM

SmallDateTime

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

SCRIPT

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, ...

Tags
 
Contribute

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
Editor, SQLServerCentral.com

Already a member? Jump in:

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