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 7902459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:29:54+00:00 2026-06-03T09:29:54+00:00

You must be aware of the .NET method DateTime.FromOADate(double d). I need to implement

  • 0

You must be aware of the .NET method “DateTime.FromOADate(double d)”.
I need to implement the same functionality in javascript. i.e given a double value like “40967.6424503935” it has to be converted to “2/28/2012 3:25:07 PM”
Can someone please help me out?

Thanks in advance!

  • 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-06-03T09:29:55+00:00Added an answer on June 3, 2026 at 9:29 am

    The automation date is the number of days since January 1, 1900 (with the year 1900 strangely being treated as a leap year). So a conversion is:

    var oaDate = 40967.6424503935;
    var date = new Date();
    date.setTime((oaDate - 25569) * 24 * 3600 * 1000);
    alert(date);
    

    This solution creates a UTC date. When you display it, it’ll be displayed in your local timezone. Depending on whether your date is a local date or a UTC date, this is correct or will require some additional timezone fiddling.

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

Sidebar

Related Questions

I am aware of 'Must Override a Superclass Method' Errors after importing a project
In JavaScript, this must always be stated explicitly when accessing its properties. For example:
I am aware of quartz.net and the codeplex task scheduler managed wrapper project. They
I've got an asp.net application that must run some code every day at a
I'm a Windows (native, not .NET) programmer and I'd like to port an application
ASP.NET MVC allows users the ability to assign permissions to functionality (i.e. Actions) at
Looking for an FFmpeg wrapper usable in .NET. The wrapper must support video playback
I am aware of the need to synchronize all inputs to an FPGA before
I need a WeifenLuo replacement that'll run on both .NET and Mono, on Windows,
Probem: A parent abstract class must be aware of all his existing child classes.

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.