Creating windows filetime value from current date/time
We are working with a vendor database that stores the date/time of a scheduled event in Windows Filetime format in MSSQL in a field defined as float (8)
example: 129744036000000000 is in the database and represents the date time of 2/21/22 9:00am
I have found a solution to converting that data to a readable format of date/time for displaying to users, it is listed below
<cfset objJava = createObject("java","java.util.Date")>
<cfset dateJava = objJava.init(javacast("long", (129744036000000000-116444736000000000)/10000))>
This works very well.
Now my next challenge that I have not found a solution for is how to convert the current date/time to Windows filetime value, in essance the revers of the above.
For example, I need to convert the date/time a person chooses as the start date/time to the Windows filetime format for inserting backinto the db.
Vendor, offers no API or docs on this either.
Thanks
