Skip to content

Instantly share code, notes, and snippets.

@jeznag
Created December 4, 2015 07:28
Show Gist options
  • Select an option

  • Save jeznag/476865ef05533fe482ff to your computer and use it in GitHub Desktop.

Select an option

Save jeznag/476865ef05533fe482ff to your computer and use it in GitHub Desktop.
calculate financial year of zoho CRM date
If(
And(
(
Datecomp(${Tasks.Due Date}, Newdate(2016, 07, 31, 12,00,'AM') )
< 0
),
(
Datecomp(${Tasks.Due Date}, Newdate(2015, 07, 31, 12,00,'AM') )
> 0
)
),
'2015-16',
'2014-15'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment