www.kevincornwell.com

Archive



SharePoint WebPart Dev Tip

This post has been moved to mySharePointBlog. Go Here.


Comments Off


SQL Server – How to combine 2 date and time columns into 1 column.

Sample columns

date_col:

2007-05-06 00:00:00.000

time_col:

1971-01-01 01:06:23.000

Use this…

DATEADD(hh ,DATEPART(hh, [time_col]]), DATEADD(n ,DATEPART(n, [time_col]) , DATEADD(ss ,DATEPART(ss, [time_col]) , [date_col])))

To get this…

2007-05-06 01:06:23.000

Post Comment Now


Blog | Contact | Gallery | Links | Google Latitude (location) | Music | Sandbox | Search | SharePoint | Social Networking | Software | Weather | Web Design


Copyright © 1997-2009 KCSH. All rights reserved.