We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Catalog Variables of Time Type

miyu
Tera Guru

I would like to create a variable in the record producer that allows me to enter only the time.

Is this possible?

2 REPLIES 2

Anurag Tripathi
Mega Patron

Hi,

There is no variable for only time,. I guess you can create 3 drop downs, one to store Hour, One for Minutes and one for seconds.

 

Check this out, might help

UI Macro to make a time picker for catalog item variable - Developer Community - Question - ServiceN...

 

-Anurag

-Anurag

Saurav11
Kilo Patron

Hello,

There are no Time variable on Record Producer. But you can create Date/time Variable abd then just get the time from that variable using the below script:-

var dateTimeStr = g_form.getValue('u_date_time');

 

var timeArr = dateTimeStr.split(' ');

 

var time = timeArr[1];

 

Please mark answer correct/helpful based on Impact.

Thanks.