web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Get Time from Date & Time

Ram Prakash Duraisamy Profile Picture Ram Prakash Duraisamy 5,660 Super User 2025 Season 2

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