Custome Date, Array

1,807 views
Skip to first unread message

Marco Cruz

unread,
Sep 7, 2021, 6:57:33 PM9/7/21
to RunMyProcess Developer Community

Hello, could you help me

I am using a date widget inside an array

how can iinitialize with a custom date

Abdul kareem Hiyari

unread,
Sep 8, 2021, 6:59:36 AM9/8/21
to RunMyProcess Developer Community, Marco Cruz
Hi Marco,

You can use the following code:

my_date = new Date();  
currentTime = Math.round(my_date.getTime()/ 1000);  
id_delivery_items.id_delivery_date[P_index].setValue(String(currentTime));

I will also show you the widgets attached.

Hope that is enough,
Warmly,
Abdel Hiyari
Akorbi Digital RMP
Customer Support


array-widget.png
js-script-widget.png
date-widget.png

Marco Cruz

unread,
Sep 8, 2021, 10:42:17 AM9/8/21
to RunMyProcess Developer Community, Abdul kareem Hiyari, Marco Cruz
Thank you! Abdul, That was what I needed.
Have a good day!
Reply all
Reply to author
Forward
0 new messages