Set Current Date and time in a SharePoint field in day/month/year hh:mm


I have a small question how can I set fd.field('DateTime').value = current date and time ?

Thank you.

Hello @Vasilii_Burca,

You can set the field with the current date and time using this code:

fd.spRendered(function() {
    fd.field('DateTime').value = new Date();
1 Like

Thank you @mnikitina

1 Like