You need to sign in to do that
Don't have an account?
kamal_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]
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]