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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:56:57+00:00 2026-06-12T19:56:57+00:00

Following this suggestion: How to convert ticks into a readable datetime with XSLT? which

  • 0

Following this suggestion: How to convert ticks into a readable datetime with XSLT? which shows how to convert Unix timestamp format in human readable datetime format, I wanted to convert Windows 64-bit filetime structure with XSL:

<xsl:value-of select="xs:dateTime('1960-01-01T00:00:00Z') + @WDT * xs:dayTimeDuration('PT0.0000001S')"/>

where @WDT attribute represents Windows 64-bit datetime number.

However I don’t get desired result. I get i.e. date: “2371-06-30T01:10:04.34375Z” for “129854922043437500”, while I expected: “30.06.2012 03:10:04”
What could be wrong in this approach?

  • 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-12T19:57:01+00:00Added an answer on June 12, 2026 at 7:57 pm

    The main problem is the initial dtae you are using — the correct date is January 1st 1601.

    So:

    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:xs="http://www.w3.org/2001/XMLSchema">
     <xsl:output omit-xml-declaration="yes" indent="yes"/>
    
     <xsl:template match="/">
       <xsl:value-of select=
       "xs:dateTime('1601-01-01T00:00:00Z')
         + 129854922043437500 idiv 10000000 *xs:dayTimeDuration('PT1S')"/>
     </xsl:template>
    </xsl:stylesheet>
    

    when applied on any XML document (not used), produces exactly the wanted, correct result:

    2012-06-30T01:10:04Z
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I can convert SQL timestamp to unix timestamp, using the following way.
Following this tutorial and running into trouble. [TestMethod] [ExpectedException(typeof(Exception))] public void VerifyPropertyNameMethod_NonExistentPropertyString_ThrowsException() { var
Following this question , I use this function to convert arrays to objects, function
I have the following function to convert a byte array of pixels into an
In our project, we convert any given video file into mp4 file which works
There are plenty of methods to convert datatable into treeview (treenode) like this .
I'd like to convert a piece of Java code which looks like the following
I want to convert following html code into continuous string using jquery/javascript. <ul> <li>one</li>
Following this question and answer , I still have a bit trouble in the
Following this code my button works perfectly: http://twitter.github.com/bootstrap/javascript.html#modals Fades and everything. I want to

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.