You need to sign in to do that
Don't have an account?
Jay reddy
Custom label (date value - today()+30) in apex class
Heya mates,
I'm trying to access a custom label in apex class but I guess I'm missing something.
My custom label: Date
value = System.today()+30
I'm referencing this custom label in apex class but it's throwing me an error as "invalid date"
I'm trying to access a custom label in apex class but I guess I'm missing something.
My custom label: Date
value = System.today()+30
I'm referencing this custom label in apex class but it's throwing me an error as "invalid date"
Date endvalue = Date.valueOf(System.Label.Date); //String n = System.Label.Date_2; for(Contact con:scope) { if(date.valueof(con.License_Expiration_Date__c) == endvalue ) { Conlist.add(crew); } }I really appreciate if someone could help me.
My custom label: Date
value = 30
All Answers
My custom label: Date
value = 30