IT Process Automation

 View Only
  • 1.  How to get Process Automation Server time stamp?

    Posted Oct 26, 2014 02:56 PM

    Hello,

    How to get Process automation Server time stamp to a Process?

    This would help me to compute/validate accurate time dates in the Process.


    Thanks,

    Venkat



  • 2.  Re: How to get Process Automation Server time stamp?

    Posted Oct 27, 2014 10:58 AM

    You can use the Run Javascript operator and use javascript to assign dates/times to variables.  But what do you mean about validating accurate times/dates?  What’s the use case?



  • 3.  Re: How to get Process Automation Server time stamp?

    Posted Oct 28, 2014 06:32 AM

    Hi Tom,

     

    have to validate a date/time entered by user, I have implemented a javascript which validates date with current date and doing validation sucessfully.

    I guess the current time that i am using the client side (user browser time), looking for an easy way to get the Pam installed server time stamp so that it will be accurate.

     

    Thanks,

    Venkat



  • 4.  Re: How to get Process Automation Server time stamp?
    Best Answer

    Posted Oct 29, 2014 01:10 PM

    Using Run Javascript, you can do something like this:

     

    Process.myDateString = formatDate(new Date(), "MM/dd/yyyy hh:mm:ss");