|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to generate an automatic timestamp on data passed to my SQL server. I specifically need the timestamp to generate a zulu or UTC entry. What is the best way to accomplish this? So far I've had no luck.
|
|
#2
|
||||
|
||||
|
GETUTCDATE function returns the current UTC time (derived from the current local time and the time zone setting of the computer on which SQL Server is running).
Subtracting GETUTCDATE from GETDATE (which gets the current system, or local, date and time) calculates the displacement. |
|
#3
|
|||
|
|||
|
The current method I'm using is temprs("datetimeopen")=now. This actually works perfectly, but the requirement dictated by my boss was that I use a zulu or utc timestamp on each submission, because our customer base is operating globally, and much of the info is time critical. I read up on the GETUTCDATE, but I'm not sure how to incorporate it into the .asp page is posting the data. Any ideas or pointers.
Thanks, radiantmercury |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Using zulu/UTC in SQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|