<?php
$date = '23/02/2012';
$timestamp = DateTime::createFromFormat('d/m/Y', $date);
$date = $timestamp->getTimestamp();
var_dump($date);
- Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- int(1330023351)
- Output for 7.3.32 - 7.3.33, 8.0.13
- int(1330019751)
- Output for 7.0.6
- int(1330013893)
- Output for 7.0.5
- int(1329972427)
- Output for 7.0.4
- int(1330014507)
- Output for 7.0.3
- int(1330017294)
- Output for 7.0.2
- int(1329953294)
- Output for 7.0.1
- int(1329967646)
- Output for 7.0.0
- int(1329974643)
- Output for 5.6.21
- int(1329996509)
- Output for 5.6.20
- int(1329968735)
- Output for 5.6.19
- int(1329957390)
- Output for 5.6.18
- int(1329988096)
- Output for 5.6.17
- int(1330030864)
- Output for 5.6.16
- int(1329977495)
- Output for 5.6.15
- int(1329980555)
- Output for 5.6.14
- int(1329987444)
- Output for 5.6.13
- int(1330003023)
- Output for 5.6.12
- int(1329968668)
- Output for 5.6.11
- int(1329991017)
- Output for 5.6.10
- int(1329999016)
- Output for 5.6.9
- int(1330017571)
- Output for 5.6.8
- int(1329963126)
- Output for 5.5.35
- int(1330018379)
- Output for 5.5.34
- int(1329976745)
- Output for 5.5.33
- int(1329966923)
- Output for 5.5.32
- int(1330001567)
- Output for 5.5.31
- int(1329955028)
- Output for 5.5.30
- int(1329987335)
- Output for 5.5.29
- int(1329968514)
- Output for 5.5.28
- int(1329980158)
- Output for 5.5.27
- int(1329986890)
- Output for 5.5.26
- int(1330008715)
- Output for 5.5.25
- int(1330033387)
- Output for 5.5.24
- int(1329970985)
- Output for 5.4.45
- int(1330021618)
- Output for 5.4.44
- int(1330021734)
- Output for 5.4.43
- int(1330021729)
- Output for 5.4.42
- int(1330021728)
- Output for 5.4.41
- int(1330021727)
- Output for 5.4.40
- int(1330021723)
- Output for 5.4.39
- int(1330021722)
- Output for 5.4.38
- int(1330010884)
- Output for 5.4.36 - 5.4.37
- int(1330011466)
- Output for 5.4.35
- int(1329993047)
- Output for 5.4.34
- int(1330000680)
- Output for 5.3.29, 5.4.32
- int(1330000716)
- Output for 5.4.24 - 5.4.31
- int(1330023355)
- Output for 5.4.2 - 5.4.23
- int(1330023356)
- Output for 5.3.9 - 5.3.28, 5.4.0 - 5.4.1
- int(1330023357)
- Output for 5.3.0 - 5.3.8
- int(1330023358)
- Output for 5.2.10 - 5.2.17
- Fatal error: Call to undefined method DateTime::createFromFormat() in /in/7RIAZ on line 3
Process exited with code 255. - Output for 5.2.0 - 5.2.9
- Fatal error: Call to undefined method DateTime::createfromformat() in /in/7RIAZ on line 3
Process exited with code 255. - Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
- Fatal error: Class 'DateTime' not found in /in/7RIAZ on line 3
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
- Fatal error: Undefined class name 'datetime' in /in/7RIAZ on line 3
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Undefined class name 'datetime' in /in/7RIAZ on line 3
preferences:
273.47 ms | 401 KiB | 356 Q