var currentServerDateTime = new Date(_spPageContextInfo.clientServerTimeDelta);
But I want it into format "dd/mm/yyyy", how can I achieve it?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
To get the current date time try this code below :
var date = new Date(); var currentServerDateTime = date.format("dd/MM/yyyy");
Hope it will be helpful.