How to display date in dd/mm/yy format.

  <ui:outputDate value="{!v.CreatedDate }"


How to display date in following format:



lightning:formattedDateTime i tried and it worked fine for me. if you remove the timezone tag it will respect the user locale settings.

| improve this answer | |
  • 6
    This answer would be greatly improved if you edit its content to include a complete sample of what your markup looked like. – Adrian Larson Oct 17 '18 at 9:31
  • <lightning:formattedDateTime value="{!v.date}" timeZone="Europe/Berlin" year="numeric" month="numeric" day="numeric"/> – bksfdc Oct 17 '18 at 14:01
  • 2
    @bksfdc Please add content as an edit, as Adrian said, rather than a comment. – David Reed Oct 17 '18 at 14:26
  • 1
    Indeed you should edit your post to include any code. That's not what comments are for. – Adrian Larson Oct 17 '18 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.