ldap2date

Parses LDAP Generalized Time Syntax

ldap2date.js

Do you have a string in RFC 4517 Generalized Time syntax, when you really just want a Date?

Or perhaps you need some Generalized Time, but have a Date instead.

If so, the methods below may help you. Currently, only 'Z', style strings are supported.

Returns a new Date() object

  • time - String - A LDAP Generalized-Time string

Returns a string in GeneralizedTime syntax

  • date - Date - A date object