?
Solved

local and server dates, timezones

Posted on 2014-03-12
2
Medium Priority
?
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 1500 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

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…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

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