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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:21:24+00:00 2026-05-23T17:21:24+00:00

<cfoutput> <cfset x = createTimespan(0,0,0,0)> <cfset epoch = createDateTime(1899,12,30,0,0,0)> <cfset date = epoch +

  • 0
<cfoutput>
    <cfset x = createTimespan(0,0,0,0)>
    <cfset epoch = createDateTime(1899,12,30,0,0,0)>
    <cfset date = epoch + x>
    #date# #dateFormat(date)# #timeFormat(date)#
</cfoutput>

output:

0 30-Dec-99 12:00 AM

What’s so significant about Dec 30, 1899?

  • 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-23T17:21:25+00:00Added an answer on May 23, 2026 at 5:21 pm

    As you said, it is probably related to the COM/OLE automation date format; its first version was written in Microsoft VC++ back in 1995 (source), and it’s plausible that it exploited OLE features.

    The OLE datetime type, in turn, was influenced by the decision of using VBA into Excel.

    Excel had to be backwards-compatible with Lotus 123, which considered 1900 as a leap year (but years divisible by 100 are leap years only if they are divisible by 400); while its day 1 was officially 1/1/1900, it considered 29/02/1900 as an existing day, so all the other days were “shifted forward” by one. This meant that, for every day since 1/3/1900, the “actual day 1” was 31/12/1899 (or, if you prefer, day 0 was 30/12/1899). The Excel guys first used a small hack to make their functions behave exactly like Lotus 123 ones.

    On the other hand, when VBA was added to Excel, the people responsible for the date/time functions in VBA decided to fix the whole thing in some way: instead of using 1/1/1900 as day 1 and faking the presence of 29/02/1900, they actually moved the epoch back of one day: the first two months of 1900 weren’t compatible anymore with Lotus 123, but the system gained in coherency.

    Source: http://www.joelonsoftware.com/items/2006/06/16.html

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

Sidebar

Related Questions

I have the below code: <cfset abcList = *,B,b,A,C,a> <cfset abcList=ListToArray(abcList,',')> When I output
I am running a query and am try to output the information using cfoutput
According to LiveDocs for cfoutput in cf7 : When you specify a query attribute,
If I do something like this in ColdFusion: <cfoutput>foo=#foo()#</cfoutput> The resulting HTML has a
I must be losing my mind. <cfif cgi.request_method eq POST> <cfoutput> Form.fieldnames = #form.fieldnames#<br>
is there a way to set a variable with cfset that acts more like
Is it possible to set a ColdFusion variable to a concatenated string? <cfoutput query=getName>
I expect the following function to output a sanitized list of tags, but instead
I have a loop in Coldfusion which will run for a long time; about
I have something like this <table> <cfoutput query=query1> <tr> <td>#data#</td> </tr> <tr> <td> <iframe

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.