Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6533013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:04:25+00:00 2026-05-25T10:04:25+00:00

I have to situations where I transfer dates from browser to server. 1) First

  • 0

I have to situations where I transfer dates from browser to server.

1) First situation is through a jQuery/JSON call to an ASMX service (.NET 4.0).

2) The second situation is when page first serializes an object, which includes a date, to a hidden field and then the page is posted to server. The hidden field is parsed (using .NET’s built in JavaScriptSerializer).

So, let’s say the user enters the date “2011-08-31”. In the first situation the resulting date on the server is 2011-08-30 22:00 (because I am currently in a +2 time zone). However, in the second situation the resulting date on the server is 2011-08-31 (correct).

Both situtations use the same JSON serializer on the browser.

But I cannot understand why these two are generating different dates on server 🙁
Does anyone know?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:04:26+00:00Added an answer on May 25, 2026 at 10:04 am

    You need to use UTC dates, take a look at these resources:

    get UTC Date in javascript

    converting UTC with C#

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a situation where the client makes a call through curl to a
I have the following situation: Windows Server environment with multiple user sessions. Windows Service
I have the following situation. A customer uses JavaScript with jQuery to create a
I have a situation that users access remote MySQL server in C# application. Basically,
I have several situations where I need to pass multi-dimensional PHP arrays into Javascript/jQuery.
This is the situation: I have server with linux, and there is two databases
I have a .net web service that takes some xml data. From within the
I have these two situations: String s = aa; s = s + aa;
I'm regularly running into similar situations : I have a bunch of COM .DLLs
When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.