You need to sign in to do that
Don't have an account?
Rakul Srivastav
how to get date time in the format dd-mm-yyyy, hh:mm AM/PM
I'm trying to fetch datetime in the below format but unable to get it the exact way i need it.
I need it as dd-mm-yyyy, hh:mm AM/PM, I'm using below func "Datetime.NOW().format()" which gives me as "7/19/2021, 6:28 AM". The date is coming as MM/DD/YYYY and time is correct format, but my requirement is DD/MM/YYYY , hh:mm AM/PM.
which func can be used?
Hi,
Please find the solution with your desire result :DD/MM/YYYY , hh:mm AM/PM.
Please mark it as the Best Answer so that other people would take references from it.
Thank You
All Answers
Try this Check below link for details regarding Date format and DateTime format.
https://www.xgeek.net/salesforce/date-format-and-datetime-format/
If it helps marks it as best answer.
Thanks!
Hi,
Please find the solution with your desire result :DD/MM/YYYY , hh:mm AM/PM.
Please mark it as the Best Answer so that other people would take references from it.
Thank You