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
bluecapbluecap 

DateTime Masking

Hi all,

Whats the best way to go about formatting a datetime value within a lightning component? Im just using ui:outputDateTime at the moment, but would like to apply a specific format. Is there something similar to VF's apex:outputText tag, similar to below?
 
<apex:outputText value="{0, date, MMMM d','  yyyy}">
    <apex:param value="{!contact.Birthdate}" /> 
</apex:outputText>

Thanks ahead of time. All suggestions are appreciated.