Skip to main content

Notifications

Announcements

No record found.

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 265

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
    on-premise 265 on at
    RE: Date time field set to standard time

    _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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans