Skip to main content

Notifications

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans