You need to sign in to do that
Don't have an account?
Shivani Gadge
I want date format as('dd/MM/yyyy hh:mm:ss a')
appDocumentCategory.Received_Date__c=System.now();
above is my code i want date format as ('dd/MM/yyyy hh:mm:ss a') but when I'm doing I'm getting error for datatype because appDocumentCategory.Received_Date__c is in datetime datatype.
Can anyone help me please?
above is my code i want date format as ('dd/MM/yyyy hh:mm:ss a') but when I'm doing I'm getting error for datatype because appDocumentCategory.Received_Date__c is in datetime datatype.
Can anyone help me please?
Can you check if the below link helps you to get the solution.
https://salesforce.stackexchange.com/questions/146952/system-vs-date-datetime-class
If this helps, Please mark it as best answer.
Thanks,