Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

How can I change the date format, when I use the API rest to consult a table.

Gustavo13
Mega Contributor

Hi guys, I need to change the date format when I consult a incident using an API

I've already changed the format on the plataform. to dd/mm/yy but when I consult the format is dd-mm-yy.

Result API:   

find_real_file.png

Can you help?

Thanks

Gustavo Petta.

 

1 ACCEPTED SOLUTION

Hi Asifoor

 

I resolved this issue using another parametter on API and configuring the format on instance.

 

Thanks to your help.

View solution in original post

7 REPLIES 7

Knight Rider
Mega Guru

Hi Gustavo,

I believe you are using a Scripted REST API  to get the response.

Please use this below community post for more information

https://community.servicenow.com/community?id=community_question&sys_id=c65587addbd8dbc01dcaf3231f96...

 

Thanks,

-Vinay.

Hi Knight Rider.

 

I resolved this issue using another parametter on API.

 

sysparm_display_value = true.

 

Thanks to your answer.

Isn't my response telling you to add the parameter on your API?

Would you please mind marking my answer as correct instead of yours?

Thank you.