SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Content with tag Datetime Manipulation Rss

   Items 1 to 16 of 16   
 

SQL Server 2008 T-SQL Enhancements Part - II

Continuing with his series on changes in SQL Server 2008, Arshad Ali takes a look at table enhancements and new data types.  Read more...
By Arshad Ali 2010/03/12 (first published: 2009/07/27) | Source: SQLServerCentral.com | Category: sql server 2008
Rating: |  Discuss |  Briefcase | 23,432 reads

Datetime precision

By Craig Outcalt 2009/11/30 | Category: datetime manipulation
Rating: (not yet rated) |  Discuss |  Briefcase | 3,064 reads

DateTime Trick

By Volkan Kuyucuoglu 2009/10/26 | Category: t-sql
Rating: (not yet rated) |  Discuss |  Briefcase | 4,092 reads

Nth occurrence of a weekday in a month and year

To find date at nth occurrence of a weekday in a month and year  Read more...
Rating: |  Discuss |  Briefcase | 532 reads

SQL Server 2008 T-SQL Enhancements Part - II

Continuing with his series on changes in SQL Server 2008, Arshad Ali takes a look at table enhancements and new data types.  Read more...
By Arshad Ali 2010/03/12 (first published: 2009/07/27) | Source: SQLServerCentral.com | Category: sql server 2008
Rating: |  Discuss |  Briefcase | 23,432 reads

Temporal Datatypes in SQL Server

In the first of a series of articles on the tricks of tackling temporal data in SQL, Joe Celko discusses SQL's temporal data types and agonizes over the fact that, although there are ANSI/ISO Standards for temporal operations in SQL, every vendor has something different.  Read more...
By Additional Articles 2008/12/31 | Source: SimpleTalk | Category: datetime manipulation
Rating: (not yet rated)  Rate this |  Briefcase | 584 reads

SQL Server Function to Determine a Leap Year

I need to write a function to determine if particular year is a leap year (i.e. February contains 29 days rather than 28 days). I know that there are various rules for calculating leap years. Is there an easy way to figure this out? Can you provide an example or two to validate various years?  Read more...
By Additional Articles 2008/07/14 | Source: MSSQLTips.com | Category: datetime manipulation
Rating:  Rate this |  Briefcase | 4,452 reads

fn_getDateAway - Calculates a date based upon arguments specified

Calculates a past or future date based upon supplied parameters. Returns a datetime  Read more...
By Jeff Luckett 2008/03/24 | Source: SQLServerCentral.com | Category: datetime manipulation
Rating: |  Discuss |  Briefcase | 845 reads

SQL Server 2008 New DATETIME DataTypes

This article is going to cover the newly introduced data types in SQL Server 2008 July CTP, and will specifically discuss the DATETIME functions.  Read more...
Rating:  Rate this |  Briefcase | 3,625 reads

Generating Missing Dates and Numbers

Finding missing data in a sequence of numbers or dates is a common request of DBAs. Regular author Jacob Sebastian brings us a new article that shows just how you can do this.  Read more...
By Jacob Sebastian 2008/02/06 | Category: datetime manipulation
Rating: |  Discuss |  Briefcase | 7,414 reads

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,736 reads

Calculating the Number of Business Hours Passed Since a Point of Time

A set of user defined functions used to calculate the number of business or working hours (excluding the non working hours) that have passed since a certain point of time.  Read more...
Rating: |  Discuss |  Briefcase | 1,007 reads

New datetime datatypes in SQL Server 2008

Older versions of SQL Server had only one datatype to store both the date and time values. In SQL Server 2008, Microsoft introduces a set of new datatypes that store date and time individually, and both date and time together.  Read more...
By Additional Articles 2008/01/21 | Source: Database Journal | Category: sql server 2008
Rating:  Rate this |  Briefcase | 2,340 reads

Using the DATE data type in SQL Server 2008

In SQL Server 2008 we get a new DATE date type that allows you to store a date without a time.  Read more...
By Additional Articles 2007/12/18 | Source: SQLTeam.com | Category: datetime manipulation
Rating:  Rate this |  Briefcase | 2,623 reads

Payment due date function

Calculates the nth due date for any given date, while accounting for weekends.  Read more...
Rating: |  Discuss |  Briefcase | 1,704 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 | 3,328 reads
   Items 1 to 16 of 16