This content has been marked as final. Show 1 reply
Did some search on the net and I found the java equivalent of the vb script at
Whenever PeopleCode doesn't do the job, I find a solution in Java.
Compile Java, add class to PS_HOME/classes dir, reboot appserver and call Java class from PeopleCode with buildin function CreateJavaObject()
Java Sample :
If you want to create a java date object out of this value, please try following this sample, where i have used an adjustment factor to convert the lastLogonTimestamp value into a Date object..
public static void main(String args)
long llastLogonAdjust=11644473600000L; // adjust factor for converting it to java
Date lastLogon = new Date(127877417297554938L/10000-llastLogonAdjust); //