Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Date time field set to standard time

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans