Quantcast
Channel: Forum CRM Deployment
Viewing all articles
Browse latest Browse all 997

CRM 2016 : Set default date as Weekend date

$
0
0

Hi All,

I'm working on CRM 2016 and I'm working on the requirement to set a default date as Friday for the date attribute.
Can some one please help how set that.

I tried below logic but it is not working.

 var WeekDate = Xrm.Page.data.entity.attributes.get("new_friday");
        var today = new Date();
        var WeekendDate = new Date(today.setDate(today.getDate() + 7));
        WeekDate.setValue(WeekendDate);

Thanks,
Rahul





Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>