Solved

local and server dates, timezones

Posted on 2014-03-12
2
147 Views
Last Modified: 2014-03-13
Hi Experts,

We have a web application that intensively uses dates and times. These dates are managed using javascript (client side) and vb.net (server side) then stored in a sqlserver 2008 database.  We would like to store these dates in a ‘standard’ way.  I mean, (1) converting client date to server date or (2) saving dates independently of server or client time zone.  Also, we want the ability to render these dates on the local time zone of the browser.  What is the best and simple way to achieve this?

Thank You,
0
Comment
Question by:KnowledgeWare
2 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 39924411
There won't be one right answer to this question so you'll have to find your own way, ultimately.  That said, we convert client and server times to UTC, and save those along with the timezone offset for each.
0
 

Author Closing Comment

by:KnowledgeWare
ID: 39926882
It points me in the right direction
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question