Time format Variable

White Wolf
Tera Contributor

I am wanting to build a variable that is just time.

 

I have been asked to build it in the Service Portal.

 

we need to give the ability to ask for a time range in two Fields, from time and to time.

 

how would I do this

2 REPLIES 2

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @White Wolf 

Greetings!

refer the below threads:

https://www.servicenow.com/community/developer-forum/time-variable-on-catalog-request-form/m-p/14407...

refer Ankur's approach Herr.

https://www.servicenow.com/community/itsm-forum/time-picker-type-of-variable/td-p/858372/page/2

Please mark answer helpful or correct. if it solves your query!

Kind Regards,

Ravi Chandra.

Samaksh Wani
Giga Sage
Giga Sage

Hello @White Wolf 

 

Use this :-

 

 

<input type="time" id="from" name="from">
<input type="time" id="to" name="to">

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh