smaller date in html
This commit is contained in:
parent
bf25fae376
commit
40b4478bb5
1 changed files with 10 additions and 0 deletions
|
|
@ -682,6 +682,16 @@ function shrink_date($p_date)
|
|||
$str_date = substr($date, 0, 4) . substr($date, 6, 2);
|
||||
return $str_date;
|
||||
}
|
||||
/**
|
||||
* @brief shrink the date, make a date shorter for the printing
|
||||
* @param $p_date format DD.MM.YYYY
|
||||
* @return date in the format DDMMYY (size = 13 mm in arial 8)
|
||||
*/
|
||||
function smaller_date($p_date)
|
||||
{
|
||||
$str_date = substr($p_date, 0, 6) . substr($p_date, 8, 2);
|
||||
return $str_date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief format the date, when taken from the database the format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue