function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion


HI , 


I wanna display the datetime, but i am facing a problem here, 

i have used date formatter  as mm/dd/yyyy, and time as hh:mm:ss.

so , when the date is dislayed, in the place of month minutes are being displayed, 

How could i rectify this, 

what are the correct date and Time Formatters

Could any one help me with this proble 



Thanks in advance..

Best Answer chosen by Admin (Salesforce Developers) 

I believe you use uppercase M for month (i.e. MM/dd/yyyy )