Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
| Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 14th, 2007, 01:06 PM
Registered User
 
Join Date: Jul 2007
Location: popayan, , Colombia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Local Date and Time to UTC?

Hi:

I have in table with the local date and time (colombia) of all the inserted records, but I need to do a select where I returned these records but that turns me the date and the local time in Date and Hour UTC (GMT) and show them in the select; have I no idea of as I can do it?

I hope that someone support me.

Thanx

  #2 (permalink)  
Old July 18th, 2007, 01:29 AM
Friend of Wrox
 
Join Date: May 2006
Location: Delhi, Delhi, India.
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think u need to manipulate the datetime value with the time difference of colombia and GMT.U can use DateAdd function.

Bijgupt
  #3 (permalink)  
Old July 24th, 2007, 10:08 PM
Registered User
 
Join Date: Jul 2007
Location: popayan, , Colombia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 ok thanx for your support...this was very useful
Go to Top of Page

  #4 (permalink)  
Old July 24th, 2007, 10:12 PM
Registered User
 
Join Date: Jul 2007
Location: popayan, , Colombia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default


ok thanx for your support...this was very useful



Similar Threads
Thread Thread Starter Forum Replies Last Post
date and time in EST time zone anboss XSLT 1 May 21st, 2008 01:42 PM
Date Format - Local x Server fskilnik Classic ASP Basics 0 November 2nd, 2005 07:34 AM
UTC DateTime to Local DateTime r_ganesh76 SQL Server 2000 1 April 4th, 2005 08:21 AM
insert system date. no date and time jimmy Access VBA 6 November 20th, 2003 01:11 PM
time (UTC v local and NOW()) m3rajk PHP Databases 2 August 18th, 2003 12:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.