Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Application Discovery Pattern InstallDate format from YYYY-MM-DD to DD-MM-YYYY

piyushgarg
Tera Contributor

Hello Team,

 

I've created a Itunes Application pattern to pull the InstallDate from Itunes Application ; I'm not using a custom field but using the ootb install_date field that is avaiable on the form.

 

I've managed to get part of it working but my install_date field does not populate with the date on the ci.

My WMI Query is set like this:

piyushgarg_0-1739639641143.pngpiyushgarg_1-1739639742739.png

And for the Set Parameter Value  the settings are set to this:

piyushgarg_2-1739639846019.pngpiyushgarg_3-1739639905188.png

 

Any suggestions or any idea how I can get this fully working would be much appriciated.

 

Thanks

1 REPLY 1

Najmuddin Mohd
Mega Sage

Hello @piyushgarg ,

You can write Pre sensor script, to modify the format of the date using GlideDate functionality or regex,

Reference: https://www.servicenow.com/community/itom-blog/using-pre-post-processing-scripts-to-handle-reference...

If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.