Date Time Picker listener - how to?

Rumceisz August 17, 2014

Hi All,

we have a date time picker field and we want to set a script listener which set On hold issues to Open when current time is equal the already set Date time picker.

cfValues['Reopen date'] == 'Some Value'

What should we write into 'Some Value'?

Thanks,

Rumi

1 answer

0 votes
Alexey_Rjeutski__Polontech_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2014

Something like

Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(0);
cal.set(year, month, day, hour, minute, second);
Date date = cal.getTime(); // get back a Date object
cfValues['Reopen date'] == new Timestamp(date.getTime());

Suggest an answer

Log in or Sign up to answer