You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

formatting current date in specific date format

Summary:

I'm using a REST connector to call a REST API from OPA. As part of that I need to send current date in YYYY-MM-DD format in the data association.

I know I can use 'now' to get the current date time but do not know how to format it.

Appreciate your help.


Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

OPA 23.10

Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!