SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Content with tags Datetime Manipulation, T-SQL Rss

Refine your search with one of the following additional tags (with number of items):

scalar-valued function (1)    
User-defined function (1)    
   Items 1 to 3 of 3   
 

Different Date Formats

You Can Find Some Date Functions and extracting the different Date Formats using the Convert and Cast  Read more...
By Vinuraj R 2008/02/01 | Source: SQLServerCentral.com | Category: Datetime Manipulation
Rating: |  Discuss |  Briefcase | 1,075 reads

Payment due date function

Calculates the nth due date for any given date, while accounting for weekends.  Read more...
By Ralph Schwehr 2007/12/03 | Source: SQLServerCentral.com | Category: User-defined function
Rating: |  Discuss |  Briefcase | 1,096 reads

Working with Time Spans and Durations in SQL Server

What is the best way to return the "duration" of an event in SQL, given the start and end datetime values? How can we add up these durations to return grand totals? What data types should be used to return this data to our clients? How do we handle overflows, such as when hours go over 23 or minutes total up to over 59? Are there any T-SQL functions or other techniques that are useful in these scenarios?   Read more...
By Additional Articles 2007/10/24 | Source: SQLTeam.com | Category: T-SQL
Rating:  Rate this |  Briefcase | 2,606 reads
   Items 1 to 3 of 3