function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
DateTime yourDate = Datetime.now(); String dateOutput = yourDate.format('dd-MM-yyyy'); System.debug('Debug: '+dateOutput);
Here is the piece of code that will help you convert your date "mm/dd/yyyy" to "dd-MM-yyyy" format in apex class. Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_date.htm
I hope it will you.
Regards,
Akshay