{"id":14633,"date":"2010-03-12T07:00:00","date_gmt":"2010-03-12T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2010\/03\/12\/why-does-the-ole-variant-date-format-use-30-december-1899-as-its-zero-point\/"},"modified":"2023-11-29T09:27:55","modified_gmt":"2023-11-29T17:27:55","slug":"20100312-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20100312-00\/?p=14633","title":{"rendered":"Why does the OLE variant date format use 30 December 1899 as its zero point?"},"content":{"rendered":"<p>In 2006, via the suggestion box, <!-- HREF=\"http:\/\/blogs.msdn.com\/oldnewthing\/pages\/407234.aspx#761881\" --> Chris\u00a0J asks why the OLE variant date format has such a strange zero point. Its zero point is 30 December 1899, as opposed to 1 January 1900 (SQL Server&#8217;s zero point) or 1 January 1970 (the unix zero point).<\/p>\n<p>It turns out I don&#8217;t have to answer this because <a title=\"Eric\u2019s Complete Guide to VT_DATE\" href=\"https:\/\/ericlippert.com\/2003\/09\/16\/erics-complete-guide-to-vt_date\/\"> Eric Lippert explained it three years before the question was posted<\/a>, and then some time later posted <a title=\"Bug Psychology\" href=\"http:\/\/web.archive.org\/web\/20090606213951\/http:\/\/blogs.msdn.com\/ericlippert\/archive\/2009\/06\/01\/bug-psychology.aspx\"> a puzzle regarding date calculations<\/a>.<\/p>\n<p>Public Service Announcement: This weekend marks the start of Daylight Saving Time in most of the United States.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s a long, sad story.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[2,108],"class_list":["post-14633","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-history","tag-time"],"acf":[],"blog_post_summary":"<p>It&#8217;s a long, sad story.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/14633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=14633"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/14633\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=14633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=14633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=14633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}