Support › MB Admin Columns › Change Date & Time display in Admin ColumnResolved
Fairly new to MetaBox having come from the ACF world and so far coping pretty well!
Wondering if there is a way to change the displayed format of the datetime in the Admin Columns rather than the standard output:
I've implemented the code on the tutorial page here:
I also tried setting the date picker format in the field to d-m-y as I did read in this forum that would change the display in the Admin, but it doesn't seem to be the case.
Happy to be guided on something I am potentially doing wrong 🙂
So I have an issue - I added this code following the tutorial mentioned above:
Now I have an issue with this happening in WordPress:
What am I doing wrong? This has also caused problems with plugin updates and a couple of other things.
The function date() takes the second parameter in timestamp format. If the date field on your end is saved in timestamp format, no need to use the function strtotime().
You can read more here https://docs.metabox.io/fields/date/#template-usage