Parses LDAP Generalized Time Syntax
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.
Returns a new Date() object
time- A LDAP Generalized-Time string
null will be returned if the time string cannot be parsed into a valid Date object.
Returns a string in GeneralizedTime syntax
date- A date object