You need to sign in to do that
Don't have an account?
Coolday
I want to change the Date Time format of below line to YYYY-MM-DDT00:00:00Z
I want to change the Date Time format of below line to YYYY-MM-DDT00:00:00Z
att.Time = acc.Time__c != null ? String.valueof(acc.Time__c ) : null;
Thanks and Regards
att.Time = acc.Time__c != null ? String.valueof(acc.Time__c ) : null;
Thanks and Regards
All Answers
Refer the below link have solution for similar kind of ask.
https://salesforce.stackexchange.com/questions/122694/how-to-convert-date-to-format-yyyy-mm-ddthhmmss-hhmm
If this helps, Please mark it as best answer.
Thanks!!
Hi Ankaiah,
Is it possible that manipulations can be done on this line itself -
att.Time = acc.Time__c != null ? String.valueof(acc.Time__c ) : null;
what is the data type of Time__c field?
Thanks!!
try with below code.
If this helps, Please mark it as best answer.
Thanks!!
Method does not exist or incorrect signature: void format(String) from the type String