Event Data Format Preview

For change the data format in the Event Preview  you have to go in ..\wp-content\plugins\nicdark-shortcodes\shortcodes\query\events_query.php  and find the following line of code:

bk-event-prev

(Code that prints the date)

$outputdate = ( $alldatas['metabox_event_date'] != '' ) ? ' <div class="nicdark_space10"></div><h5 class="white"><i class="icon-calendar"></i> '.$alldatas['metabox_event_date'].'</h5> ' : '';

and replace it with:

$outputdate = ( $alldatas['metabox_event_date'] != '' ) ? ' <div class="nicdark_space10"></div><h5 class="white"><i class="icon-calendar"></i> '.$eventdate->format('d-m-Y').'</h5> ' : '';

We just have to change the value between the brackets, and choose the desired format. -> Format (‘Y-m-d’) or Format (‘d-m-Y’)

Example

Here you can download the already modified file with the date format dd-mm-yyy.

Copyright 2016 Clean Themes Studio - PI 04892530280