Customizing the date picker - year selection

georgimavrodiev
Mega Guru

Hello,

I spent the whole day investigating how to change the current date picker in SNOW in order to have an option to switch years.
I found a lot of similar threads that were raised in the period 24.03.2010 — 02.12.2016. So far — there I no answer delivered.
Yet, I would like to raise one more — the current one.

My exact question is -
Did somebody find a way to change the current date picker of SNOW to look like this one below?

datepicker1.PNG

Best Regards,
Georgi

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Georgi,



The date picker is not a configurable item without resorting to unsupported means - and even then I'm not sure. If you could do something like this, it could pose serious risks when upgrading.



That being said, I agree with you that a year picker would be nice and I invite you to open an enhancement request! Our product managers DO listen.


Enhancement requests: Tell us how you would improve the ServiceNow product


View solution in original post

8 REPLIES 8

Chuck Tomasi
Tera Patron

Hi Georgi,



The date picker is not a configurable item without resorting to unsupported means - and even then I'm not sure. If you could do something like this, it could pose serious risks when upgrading.



That being said, I agree with you that a year picker would be nice and I invite you to open an enhancement request! Our product managers DO listen.


Enhancement requests: Tell us how you would improve the ServiceNow product


Hi Chuck,


Thank you for replying!



My question was about year picker. What about changing the current date picker to only swiping between years.
In other words — not creating a completely new one, but modifying the current one.

For example: Is it possible for me to use UI Macro to add this attribute: 'changeYear: true' to the date picker, assuming SNOW uses jQuery date picker?


If it is not jQuery - then maybe some other attribute?


Best Regards,
Georgi



IT Consultant
Do IT Wise




You can visit us in our Web Site: http://www.doitwise.com


Let me check with the UI team...


For what it's worth Georgi, if you change the year in the text portion of a date field, the date picker uses that as the new starting point.



Example: type 2020-10-10 in the field and then click the icon.


find_real_file.png