Forum Discussion

Armytech's avatar
Armytech
New Contributor
20 days ago

Date as a Global property

Hi

 

How do I set date as a global property?

I need to set a global property that when I send the API request it will then input the current date into the call and return what i need.

Regards ArmyTech

2 Replies

  • nastester's avatar
    nastester
    Regular Contributor

    I haven't tried this personally but I would think you'd be able to use Calendar.instance

    ${=Calendar.instance.time.format("yyyy-MM-dd")}