2016-12-12 19:56:25 +01:00
|
|
|
<?php
|
2016-08-01 05:34:55 +02:00
|
|
|
class Date {
|
|
|
|
public static function getCurrentDate() {
|
2016-12-12 19:56:25 +01:00
|
|
|
return date('YmdHi');
|
2016-08-01 05:34:55 +02:00
|
|
|
}
|
2017-01-12 20:30:58 +01:00
|
|
|
|
|
|
|
public static function getPreviousDate() {
|
|
|
|
return date('YmdHi', strtotime(' -1 day '));
|
|
|
|
}
|
2016-12-12 19:56:25 +01:00
|
|
|
}
|