Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Month Year Picker

salvadormarchan
Kilo Guru

Hi All,

Has anyone reconfigured a GlideDate field to pick and display month and year only?

I have been researching it...I found a pure javascript in an html page; there is one about Event.observe in servicenowguru on how to default the time to zero.

I tried combining these but no luck.Any tips or leads is appreciated.

Thanks,

Dor

5 REPLIES 5

Daryll Conway
Giga Guru

I've not tried this but you could try and change the html tag attribute 'data-date_time_format="dd-MMM-yyyy"'



Using document.getElementById("<id of html tag>").data-date_time_format="MM-yyyy";