I have displayed a datatable using datatable.js
. it shows datetime field shown as in YYYY-MM-DD HH:MM:SS
, but i want to change this generate time format to dd-mm-yyyy
相关问题
- Delete Messages from a Topic in Apache Kafka
- Is there a limit to how many levels you can nest i
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- How to toggle on Order in ReactJS
You can format how the date is rendered in DataTable by using
render
option. Inrender
you can define your custom way to display the date, or useDate.toLocaleDateString
method to format it. MDN reference: Date.prototype.toLocaleDateString()