Convert LDAP Date in SQL (milliseconds to nanoseconds)
问题 I am getting date in milliseconds format. i.e.: 1427342400000 is essentially 3/26/2015 . Now I want to further convert date in nanoseconds and pass this value in accountexpires attribute in Active Directory. What is the query to convert milliseconds date to nanoseconds date? Any help would be greatly appreciated. 回答1: Now I want to further convert date in nanoseconds Ok, but convert to nano seconds since when? Looking at your example, I assume the start point to be '01-JAN-1970' . If I want