+ 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.