Activity Forums Salesforce® Discussions how to use lightning:formatteddatetime to display format 'M/D/YYYY h:mm'

  • how to use lightning:formatteddatetime to display format 'M/D/YYYY h:mm'

    Posted by Swapnil on March 21, 2022 at 7:58 am

    I am using lightning formatted date time as below

    
    
    `
    ` <lightning:formattedDateTime timeZone="{!$Locale.timezone}" value="{!ediary.VTD1_Completion_Time__c}" month="numeric" day="numeric" year="numeric" hour="2-digit" minute="2-digit"/> It displays in below format 15/2/2022, 11:31 am. that is DD/MM/YYYY, hh:mm I want the date to be displayed in MM/DD/YYYY. How can i achieve this format with lightning:formattedDateTime
    Swapnil replied 2 years, 8 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Popular Salesforce Infographics