Change Date and Time format

Hi,

How can I change the Date & Time format from:

16/02/2022 09:28:47 --> 16 February 2022 9:28AM?

Here is the code that I'm currently using:

fd.spRendered(function() {
fd.field('Time_Stamp').value = new Date().toLocaleString();
fd.field('Time_Stamp').disabled = true
});

Dear @DryChips,
Had to consult the devs on this. The date format is taken from the regional settings and can be changed only there.

1 Like

Hi Nikita,

Do you mean, it needs to be changed on SharePoints side?

Yes, exactly - it's taken from SharePoint.

1 Like