Author: danydb
Date: 2011-12-05 22:31:52 +0100 (Mon, 05 Dec 2011)
New Revision: 4560
Modified:
phpcompta/trunk/include/ac_common.php
Log:
smaller date in html
Modified: phpcompta/trunk/include/ac_common.php
===================================================================
--- phpcompta/trunk/include/ac_common.php 2011-12-05 20:20:15 UTC (rev
4559)
+++ phpcompta/trunk/include/ac_common.php 2011-12-05 21:31:52 UTC (rev
4560)
@@ -682,6 +682,16 @@
$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
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev