Skip to content

Instantly share code, notes, and snippets.

View cdeckert's full-sized avatar

Christian Deckert cdeckert

View GitHub Profile
@cdeckert
cdeckert / gist:6412770
Last active December 22, 2015 03:49 — forked from boxfoot/gist:2322443
public static Date currentFYStartDate
{
get
{
if (currentFYStartDate == null)
{
Organization orgInfo = [SELECT FiscalYearStartMonth, UsesStartDateAsFiscalYearName
FROM Organization
WHERE id = : Userinfo.getOrganizationId()];
Date today = system.today();