opensupports/server/libs/Date.php

15 lines
339 B
PHP
Raw Normal View History

<?php
2016-08-01 05:34:55 +02:00
class Date {
public static function getCurrentDate() {
return date('YmdHi');
2016-08-01 05:34:55 +02:00
}
2018-07-26 22:28:27 +02:00
public static function getPreviousDate($days = 1) {
return date('YmdHi', strtotime(" -$days day "));
}
2018-11-16 23:34:07 +01:00
public static function getNextDate($days = 1) {
return date('YmdHi', strtotime(" +$days day "));
}
}