- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
$d = getdate();
$formatMon = '';
if ($d['mon'] < 10) {
$formatMon = '0';
}
$formatMday = '';
if ($d['mday'] < 10) {
$formatMday = '0';
}
$formatHour = '';
if ($d['hours'] < 10) {
$formatHour = '0';
}
$formatMinutes = '';
if ($d['minutes'] < 10) {
$formatMinutes = '0';
}
$formatSeconds = '';
if ($d['seconds'] < 10) {
$formatSeconds = '0';
}
$today = $formatMday . $d['mday'] . '.' . $formatMon . $d['mon'] . '.' . $d['year'] . ' ' . $formatHour . $d['hours'] . ':' . $formatMinutes . $d['minutes'] . ':' . $formatSeconds . $d['seconds'];