Skip to main content

Notifications

Get Time from Date & Time

Implementation Steps:

 

Create a WebResource in Dataverse Environment

 

 

function getTime(executionContext)
{
var formContext = executionContext.getFormContext();
var Date = formContext.getAttribute("DATETIMEFIELDLOGICALNAME").getValue();
var Hours = Date.getHours();
var Minutes = Date.getMinutes();
alert(Hours + ":" + Minutes);
}

 

 

That's it 🙂

Comments

*This post is locked for comments