opensupports/server/libs/Date.php

11 lines
223 B
PHP
Executable File

<?php
class Date {
public static function getCurrentDate() {
return date('YmdHi');
}
public static function getPreviousDate($days = 1) {
return date('YmdHi', strtotime(" -$days day "));
}
}