That formula is still not correct:

adexplorer shows this date:  7/2/2009 12:33:05 PM

cfldap returns this integer8 value: 128910259851092856

The coldfusion code shown below returns this date: January 07, 1601 09:47:01 
-----------

<cfset sLDAPDate = "128910259851092856">
<cfset iLogonTime = left(sLDAPDate,4) * (2^32) + right(sLDAPDate,4)>
<cfset iLogonTime = iLogonTime / (60 * 10000000) >
<cfset iLogonTime = iLogonTime / 1440 >
<cfset iLogonTime = iLogonTime + createDateTime(1601,1,1,0,0,0)>
<cfoutput>#dateFormat(iLogonTime,"mmmm dd, yyyy")# 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325196
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to