Created
July 9, 2020 06:37
-
-
Save j-schreiber/2861f84526f53f91d8d7b0870e8592aa to your computer and use it in GitHub Desktop.
Date formatter property of pdf template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String DateFormatting { | |
public get { | |
if (DateFormatting == null) { | |
if (String.isNotBlank(Template.DateFormatting__c)) { | |
DateFormatting = '{0, date, '+ Template.DateFormatting__c +'}'; | |
} else { | |
DateFormatting = '{0, date, dd.MM.yyyy}'; | |
} | |
} | |
return DateFormatting; | |
} | |
private set; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment