Discussion

2
Replies
1077
Views
Roberto95 Member since 2016 7 posts
Citi Bank
Posted: 4 years ago
Last activity: 4 years 3 months ago
Closed

How to Manipulate DateTime Properties

Hey Pega Community,

 

Once again, I am new to Pega and I am working on this little function.

So I want to display an Icon after 1 second has elapsed. In JavaScript the way to do this is giving the icon and ID and then simply using the setTimeOut() function.

In Pega i am not sure how to fully do it.

I have set up a DateTime Object that currently has no value.

I would like to know how to initialize such property to the current date and time (I know there is a function called @currentdatetime and there is a .pxCreateDateTime, but I am not sure how to set a DateTime property using these, am I supposse to simply call a data transform and paste @currentdatetime or .pxCreateDateTime in the field next to "equals to" ?).

I also want to know how I can display this DateTime property on the screen, to check that is the correct time I am looking for.

 

Thank you all for helping or just looking through this,

Very much appreciated,

Roberto

Moderation Team has archived post
Share this page LinkedIn