Question: how to calculate days between two dates in salesforce?
Answer: To find the day of the week from a Date value, use a known Sunday, for example, January 7, 1900, and subtract it from the date, for example, TODAY() , to get the difference in days.