We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Date Picker with Start and End dates

lpolicarpio
Tera Contributor

Hi team,

 

We have a requirement to have a date field in which you can select the start and end dates (like when you're booking a flight or a hotel). Have you implemented something like this in a record producer or widget? Would really appreciate for some ideas on how it can be done.

 

Thank you!

1 REPLY 1

AnirudhKumar
Mega Sage

Those date pickers on flight booking websites are super-intuitive with basically a single calendar where you click the start and click the end date. It's not impossible to build that in ServiceNow, but you're better off simply creating 2 date/time fields - one for start date, other for end date. 

 

Just add validations that start date cannot be after end date and end date cannot be before start date, etc 🙂