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

  • SEARCH
  • Home
  • 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 4324502
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:08:29+00:00 2026-05-21T09:08:29+00:00

There are some posts on this, but not an answer to this specific question.

  • 0

There are some posts on this, but not an answer to this specific question.

The server is returning this: "/Date(1304146800000)/"

I would like to not change the server-side code at all and instead parse the date that is included in the .Net generated JSON object. This doesn’t seem that hard because it looks like it is almost there. Yet there doesn’t seem to be a quick fix, at least in these forums.

From previous posts it sounds like this can be done using REGEX but REGEX and I are old enemies that coldly stare at each other across the bar.

Is this the only way? If so, can someone point me to a REGEX reference that is appropriate to this task?

Regards,

Guido

  • 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-21T09:08:29+00:00Added an answer on May 21, 2026 at 9:08 am

    The link from Robert is good, but we should strive to answer the question here, not to just post links.

    Here’s a quick function that does what you need. http://jsfiddle.net/Aaa6r/

    function deserializeDotNetDate(dateStr) {
      var matches = /\/Date\((\d*)\)\//.exec(dateStr);
    
      if(!matches) {
        return null;
      }
    
      return new Date( parseInt( matches[1] ) );
    }
    
    deserializeDotNetDate("/Date(1304146800000)/");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may not be specific enough to answer but I'm hoping there is some
There may actually not be an answer to this question, but I wanted to
I asked this question over in the actual tutorial, but not sure I'll get
I had asked this question before, but I got no correct answer. So, this
I already asked a similar question but this one is a bit different/specific: I'm
All, This question probably has a very simple answer - something I'm overlooking. But
I know there are a LOT of blog posts on this. But I can't
There's probably 5 or 6 SO posts that tangentially touch on this, but none
I have searched this question but didn't get / or understood the answer I
Is there some way I can use URLs like: http://www.blog.com/team-spirit/ instead of http://www.blog.com/?p=122 in

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.