I am using JMESPath to query REST Api from a Fortigate Firewall. My query is here:
Licensing.forticare.support.hardware.[expires_r]
Results:
[ "2025-12-04T00:00:00.000Z" ]
How do I remove the T and everything after it so I am only left with a date? I have messed around with replace, but I think I need to convert it to a string before?
At the end of the day I would like the result to look like this:
[ "2025-12-04" ]