How do I get today's date using Microsoft Advertising Script?

Chris 1 Reputation point
2022-10-06T02:36:10.917+00:00

I am trying to get todays date in form: YYYY-MM-DD.

I tried to use Date() object but editor doesn't seem to recognize it. (const date = new Date(); should work with javascript..)

Am I missing something here? Is there a way to get today's date somehow?

Please help..

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
402 questions
{count} votes