How to format a date field in a Leaf template using Vapor 4

后端 未结 0 537
一生所求
一生所求 2021-01-03 17:32

In a list I want to show dates fetched form the database. If I use :

#Date(timeStamp: appointment.appointmentDate,localizedFormat: "E, dd-MM-yyyy")
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题