A Forum reader recently asked:

“I’m no java programmer, and I could use a hand. I’m looking for a simple xpath call to Java that retrieves the Date/Time in a text string, including any arrangement of Month, Day, Year, Hours, Minutes and Seconds. Namespace reference would be useful, too.”

And here’s the response from David Gersic …


Try this:

<?xml version="1.0" encoding="UTF-8"?>

  <description>Put object create date info to Description
    <if-class-name op="equal">User</if-class-name>
   <do-set-dest-attr-value name="Description">
    <arg-value type="string">
     <token-text xml:space="preserve"
xmlns:xml="">Account created:
     <token-xpath expression="jformat:format(jformat:new('MM/dd/yyyy

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
By: dgersic
May 30, 2007
2:51 am
Active Directory Authentication Automation Cloud Computing Cloud Security Configuration Customizing Data Breach DirXML Drivers End User Management Identity Manager Importing-Exporting / ICE/ LDIF Intelligent Workload Management IT Security Knowledge Depot LDAP Monitoring Open Enterprise Server Passwords Reporting Secure Access Supported Troubleshooting Workflow