Calendar format issues

Hello, I'm submitting the value of Calendar field on a public form to a date column in SharePoint using Power Automate. The problem is that the calendar field has the format below which causes issues when pushing it to a SP list. Is there a way to format it to send something like "yyyy-mm-dd" instead of the example below?

Tue Aug 15 1972 08:00:00 GMT-0400 (Eastern Daylight Time)

Hi,

I found this, it might be useful: Friendly Date Format - JavaScript

Thank you, but I need the value of the calendar field. Is there a way to extract the individual month, day and year from the calendar field?

I got it, the example below will let me extract the year. That way I can extract and create the date on the format I need.

var mydo = fd.field('DOB').value;

var de = new Date(mydo);

fd.field('Text6').value = de.getFullYear();

Hello @adasilva,

Tue Aug 15 1972 08:00:00 GMT-0400 (Eastern Daylight Time) — this is a standard string format of the date.

If you don't want to add/subtract time from date, or change the time zone no additional actions in Power Automate are required.