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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Date time field set to standard time

(0) ShareShare
ReportReport
Posted on by 267

I have two date time fields in two different entities.

Entity A date time field behavior is date only

Entity B Date time field behavior is user local

When i am setting the field value from entity a to entity b, it is showing 1 day less, because of user local.

I cannot change the field behavior of entity B, because of some production issues. 

How can i set the value of Entity B Date time with exact date from Entity A date time field? (using javascript)

  • on-premise Profile Picture
    267 on at

    _this.fld_vehicle.retrieveEntity().then(function (vehicleData) {

                                   if (Helper.isNotNull(vehicleData)) {

                                       _this.fld_warrantystartdate.value = new Date(vehicleData["gcct_warrantystartdate"]);

                                   }

                               });

    this how i am setting the value, it is showing one day less in entity b. how can i fix this issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 125

#2
11manish Profile Picture

11manish 89 Super User 2026 Season 2

#3
ParthPatel249 Profile Picture

ParthPatel249 87

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans