Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

salesforce set hours javascript

function removeDaysToDate(date, hours){
    var res = new Date(date);
    console.log('res ->' + res);
    console.log('hours ->' + hours);
    res.setHours(res.getHours() - hours);
    console.log('updated res ->' + res);
    return res;
}
Source by salesforce.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #salesforce #set #hours #javascript
ADD COMMENT
Topic
Name
9+7 =