Anonymous_User Absent Member.
Absent Member.
187 views

DirXML-FirstworkingDay to Datepicker

I am having severe issues getting dirxml-firstworkingday into a date
picker.
I am able to read the data, but the format in the datepicker a little
wrong (or a lot really).
I have tried several conversions, and they all fail, probably because I
never really really understand all this date conversion stuff.
Can someone point me to how to format this attribute so it can be used in
a datepicker.
Labels (1)
0 Likes
2 Replies
Knowledge Partner
Knowledge Partner

Re: DirXML-FirstworkingDay to Datepicker

On 11/23/2012 11:36 AM, Nicolai Jensen wrote:
> I am having severe issues getting dirxml-firstworkingday into a date
> picker.
> I am able to read the data, but the format in the datepicker a little
> wrong (or a lot really).
> I have tried several conversions, and they all fail, probably because I
> never really really understand all this date conversion stuff.
> Can someone point me to how to format this attribute so it can be used in
> a datepicker.


eDirectory uses CTIME on time syntax attributes, which
DirXML-FirstWorkingDay happens to be.

So IDM engine in DirXML Script policy returns a 32 bit int, a count of
seconds since Jan 1, 1970.

The User App, uses LDAP time format I believe, since the DAL queries are
basically LDAP queries.

So you want to convert from CTIME to LDAP format which is more:

20121123010101Z format I believe.

Or, yyyyMMddhhmmss followed by a literal Z. (Z in time format
conversions actually means 3 digit timezone I think).

So lookup and use java.Time() and how it converts. That pattern above
is pretty close to the destination format you need.


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: DirXML-FirstworkingDay to Datepicker

On Fri, 23 Nov 2012 17:21:51 +0000, Geoffrey Carman wrote:

> On 11/23/2012 11:36 AM, Nicolai Jensen wrote:


The issue was really, that I had to format the data to my locale date
format, and write that into the control. Would be nice to have a
"DateTime Abstraction Layer" to do that sort of thing.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.