I have not had the pleasure of working with SunONE LDAP but here is a
date parsing function that I wrote to work with SunONE Calendar. If you
have any questions about it or suggestions for improvement let me know.
Doug
<!---
parseCalDateTime takes an ISO8601 datetime format YYYYMMDDTHHMMSSZ, the
time being GMT
and parses and returns a coldfusion date
--->
<cffunction name="parseCalDateTime" returntype="date" output="false">
<cfargument name="rawDate" type="string" required="true">
<cfset returnDate = createDateTime( left(arguments.rawDate, 4),
mid(arguments.rawDate, 5, 2),
mid(arguments.rawDate, 7, 2),
mid(arguments.rawDate, 10, 2) - structFind(getTimeZoneInfo(),
"utcHourOffset"),
mid(arguments.rawDate, 12, 2),
mid(arguments.rawDate, 14, 2)
) />
<cfreturn returnDate>
</cffunction>
James Blaha wrote:
>CF�ers,
>
>Can anyone help me out with a time stamp issue in LDAP? I need to minus
>(-4:00:00:0000) from a time stamp in a Sun One 5.1 Directory LDAP server.
>
>What�s in LDAP: 2004-09-08 02:24:24.0046Z
>
>2004-09-08 02:24:24.0046Z (-4:00:00:0000) = 2004-09-07 21:24:24:0046Z
>
>Can someone please send me some basic code?
>
>Regards,
>James Blaha
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

