Used to import date format in excel and format it into year, month and day format
function excelTime($days, $time=false,$str='-'){ if(!$days)return false; if(function_exists("gregoriantojd")){- if(is_numeric($ days)){
- 569);
- $myDate = explode ('/',$gregorian);
- $myDateStr = str_pad($myDate[2],4,'0', STR_PAD_LEFT)
- $myDateStr _PAD_LEFT)
- .$str.str_pad($myDate[1],2,'0', STR_PAD_LEFT) ;
- return $myDateStr;
- $date=$days>25568?$days+1:25569;
- $ofs=(70 * 365 + 17+2) * 86400;
- $days = date("Y".$str."m".$ str."d",($date * 86400) - $ofs).($time ? " 00:00:00" : "");
- }
- str.
-
-
-
-
-
-
-
-
-
|