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
Wei Guan @ SFDCWei Guan @ SFDC 

How do I change date format of input date

Hi, experts!
 
My client uses
<lightning-input type="date" name="input1" label="Enter a date" ></lightning-input>
 
They are unable to format the date selected using datepicker or the calendar on that field. Currently the date what the end user is selected in the input fields is in MON DD YYYY format.
 
Is there anyway to format the date selected as MM/DD/YYYY?
MagulanDuraipandianMagulanDuraipandian
You can do it by using dateStyle="short". It will be supported only after June 15th after Summer '19 release.
--
Magulan Duraipandian
www.infallibletechie.com