Format date as Y-m-d
-
Hi Doeke,
Love the plugin!
I’m trying to change the date format in CSV exports to Y-m-d.
I’m doing this:
add_filter('gfexcel_field_date_format', function($format) { return 'Y-m-d'; });
But it seems it’s irrelevant what I write as my custom format. In the export it always shows up as m/d/Y as soon as I add the filter to the functions.php. If I don’t add the snippet, the dates in my export are formatted as d.m.Y
Any idea what I’m doing wrong?
Thanks
Jan
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Format date as Y-m-d’ is closed to new replies.