-
how to use lightning:formatteddatetime to display format 'M/D/YYYY h:mm'
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-
This discussion was modified 2 years, 11 months ago by
Swapnil Bhardwaj.
-
This discussion was modified 2 years, 11 months ago by
Log In to reply.
Popular Salesforce Blogs

How Do Artificial Intelligence Systems Compare Salesforce Records?
When you compare two Salesforce records, side-by-side, you can easily determine whether or not they are duplicates. However, even if you have a small number…

The Fall of the Third Party Cookie: Here’s What Salesforce Pardot Users Need to Know
Marketers rely on cookies (the kind you cannot eat) to track visitor data and personalize marketing efforts. And like Cookie Monster love them. Google’s recent…

Salesforce Awesome Admin Tips for Productivity | Salesforce Admin
It’s no secret that Salesforce continually ranks as one of the highest recommended cloud-based software management platforms. It has proven to be an incredibly robust…
Popular Salesforce Videos
The History of Salesforce
Well, it's about time to talk about the history of the company that became a $10 Billion Dollar Industry from an efficient CRM. Watch this…
Field Level Security In Salesforce
Field-level security is a setting that lets Salesforce admins define user restrictions as to who can access specific org data. The setting lets the admin…
Schedule Apex Jobs with Lighting Web Components | Developer Quick Takes
Lightning Web Components gives you the ability to give your users a great user experience when interacting with Salesforce. In this example, we will take…
Popular Salesforce Infographics

How to Deliver a Great Presentation at Dreamforce? [Infographic]
First of all, remember that attendees have paid good money to see you — so it's up to you to make sure they get what…

Top 5 ETL Tools for Salesforce Data Migration
There are plenty of ETL tools for Salesforce in the market, with varying degrees of functionality and popularity. All tools are more or less the…

ABC's of Salesforce's Apex Coding Language
Apex is a proprietary language developed by Salesforce.com. It is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control…