Excursions Data Preview

For change the data format from m-d-y to d-m-y  in the Excursions Preview Post Grid you have to go in ..\wp-content\plugins\nicdark-shortcodes\shortcodes\query\excursions_query.php and find the following line of code find this code:

$outputdate = ( $alldatas['metabox_excursion_date'] != '' ) ? ' <div class="nicdark_textevidence nicdark_bg_'.$alldatas['metabox_excursion_color'].' center"><h5 class="white nicdark_margin20">'.$alldatas['metabox_excursion_date'].'</h5><i class="'.$alldatas['metabox_excursion_icon'].' nicdark_iconbg right medium '.$alldatas['metabox_excursion_color'].'"></i></div> ' : '';

and add this line of code right above:

$excursionsdata = new DateTime($alldatas["metabox_excursion_date"]);

Now you have to replace the first code with this one:

$outputdate = ( $alldatas['metabox_excursion_date'] != '' ) ? ' <div class="nicdark_textevidence nicdark_bg_'.$alldatas['metabox_excursion_color'].' center"><h5 class="white nicdark_margin20">'.$excursionsdata->format('d-m-Y').'</h5><i class="'.$alldatas['metabox_excursion_icon'].' nicdark_iconbg right medium '.$alldatas['metabox_excursion_color'].'"></i></div> ' : '';

Copyright 2016 Clean Themes Studio - PI 04892530280