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
kamal_Raokamal_Rao 

date formatting in LWC

Hi ,

CAn some one help me how to use dateTime.mediumDateFormat for import in LWC.
https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.create_i18n 

i tryed below code 
import dateformet from '@salesforce/i18n/dateTime.mediumDateFormat';

const dateTimeFormat = new Intl.DateTimeFormat(dateformet);
consoal.log(dateTimeFormat.format(startdate));

getting below error  

[Invalid language tag: d mmm, yyyy]