5
Contributors
5
Replies
38
Views
3 Years
Discussion Span
Last Post by rpv_sen
0

Is this your solution:

<?php 
function jde_date_conv($jde_date) 
{ 

$ct = substr($jde_date,0,1); 
$yr = substr($jde_date,1,2); 
$dy = substr($jde_date,3,3); 

if($ct == 0) $yr_pfx = 19; 
if($ct == 1) $yr_pfx = 20; 

$tlt_yr = $yr_pfx.$yr; 

$base_time = mktime(0,0,0,1,0,$tlt_yr); 

$unix_time = ($dy * 86400) + $base_time; 

return date("d-m-Y" , $unix_time); 
} 
?>

Edit: you have shorter solution above.

Edited by Tpojka

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.