<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=2732602&amp;fmt=gif">

Subscribe to our Blog for the Latest Insights

Join our blog community to stay informed and receive fresh content and actionable tips directly in your inbox.

Admin Hack: Calculating Daylight Savings Automatically

Here’s the second hack submitted by Dustin Kost from 1st Light Energy (see his first dealing with distance between locations). This one will help you deal with US Daylight Savings time. Nothing worse than time changes throwing things off.
“Calculate when Daylight Savings Time start and stop dates in the US(until the government changes the rules again!). Currently (2016) DST begins on the second Sunday of March and ends on the first Sunday of November.
DST_Start_Date__c:
DATE ( YEAR (TODAY()),3,1)<br />+<br />( 14<br />-<br />CASE( MOD(DATE ( YEAR (TODAY()),3,1) - DATE (1900,1,7),7) ,<br />0,7,MOD(DATE ( YEAR (TODAY()),3,1) - DATE (1900,1,7),7))<br />)

DST_End_Date__c:

DATE ( YEAR (TODAY()),11,1)<br />+<br />( 7<br />-<br />CASE( MOD(DATE ( YEAR (TODAY()),11,1) - DATE (1900,1,7),7) ,<br />0,7,MOD(DATE ( YEAR (TODAY()),11,1) - DATE (1900,1,7),7))<br />)
Using the above, plus your own Timezone Offset formula in the User object, you can bend Salesforce's internal UTC datetime to your will.
FYI: you can't use TimeZoneSidKey so I made our own based on the User's State field. We use this in a button on Opportunity to prefill most of the fields we need on a new Event record screen for scheduling our sales reps.
Google for "salesforce url hacking" or  check here for how to put it in a button.”
Admin
Admin

Start Your Free Trial and Be Free from CRM Work

Deliver on Growth

No Credit Card Required

Be a High Performing Organization

You may also like..

How to Pass the Salesforce Administrator… | Cirrus Insight

by Maddy Osman

Read more

Cirrus Insight: The Sales Tool for All

by Michael Bell

Read more

Serious Insights: Working with Recruiters to Get Your Dream Admin Role

by BJ Mendelson

Read more

Conversion Pixel Image