2 votes

How to determine start of week for a given locale in Apex

This isn't a solution to getting the start of day for any locale real time. It's a work around. I've written some ad-hoc code to get the start of week for each locale. From that, I can hard-code a ...
Ken's user avatar
  • 374
1 vote

Update EndDate by calculating through start date +duration(picklist field)

Assuming that your updateWarrantyRecords() method is being called in a trigger context (from a trigger, from a handler in a trigger framework, etc...) Then I believe the main issue is the following ...
Derek F's user avatar
  • 61.6k
1 vote

Format Date field to pass to OmniScript

Short answer: You need to cast it as a DateTime object, otherwise you won't be able to use the format(dateFormatString) method. The TestDate__c field used in the following example is a Date field. ...
DevelBase2's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible