de-vs-en

DE vs EN

$myDate = wp_date('j. F Y',date_create_from_format('d.m.Y',$myPostMeta['receipt_date'][0])->getTimestamp());
$Sprache_DE = array('Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');
$Sprache_EN = array('January','February','March','April','May','June','July','August','September','October','November','December');
if($Sprache == 'en') { $myDate = str_replace($Sprache_DE,$Sprache_EN,$myDate); };
$myDate;

 

Share this post

Share on facebook
Share on twitter
Share on pinterest
Share on email