<?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.20, 7.2.0 - 7.2.33, 7.3.12 - 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.7
- int(1330023279)
- Output for 7.3.32 - 7.3.33, 8.0.13
- int(1330019679)
- Output for 7.0.6
- int(1330013885)
- Output for 7.0.5
- int(1329972419)
- Output for 7.0.4
- int(1330014497)
- Output for 7.0.3
- int(1330017282)
- Output for 7.0.2
- int(1329953284)
- Output for 7.0.1
- int(1329967636)
- Output for 7.0.0
- int(1329974634)
- Output for 5.6.21
- int(1329996500)
- Output for 5.6.20
- int(1329968725)
- Output for 5.6.19
- int(1329957379)
- Output for 5.6.18
- int(1329988086)
- Output for 5.6.17
- int(1330030853)
- Output for 5.6.16
- int(1329977485)
- Output for 5.6.15
- int(1329980545)
- Output for 5.6.14
- int(1329987435)
- Output for 5.6.13
- int(1330003014)
- Output for 5.6.12
- int(1329968659)
- Output for 5.6.11
- int(1329991007)
- Output for 5.6.10
- int(1329999007)
- Output for 5.6.9
- int(1330017550)
- Output for 5.6.8
- int(1329963118)
- Output for 5.5.35
- int(1330018368)
- Output for 5.5.34
- int(1329976736)
- Output for 5.5.33
- int(1329966909)
- Output for 5.5.32
- int(1330001557)
- Output for 5.5.31
- int(1329955018)
- Output for 5.5.30
- int(1329987325)
- Output for 5.5.29
- int(1329968505)
- Output for 5.5.28
- int(1329980148)
- Output for 5.5.27
- int(1329986883)
- Output for 5.5.26
- int(1330008706)
- Output for 5.5.25
- int(1330033379)
- Output for 5.5.24
- int(1329970961)
- Output for 5.4.45
- int(1330021220)
- Output for 5.4.44
- int(1330020796)
- Output for 5.4.43
- int(1330020791)
- Output for 5.4.42
- int(1330020789)
- Output for 5.4.41
- int(1330020787)
- Output for 5.4.40
- int(1330020784)
- Output for 5.4.39
- int(1330020783)
- Output for 5.4.38
- int(1330010579)
- Output for 5.4.36 - 5.4.37
- int(1330010631)
- Output for 5.4.35
- int(1329992641)
- Output for 5.4.34
- int(1329999948)
- Output for 5.4.32
- int(1330000669)
- Output for 5.4.13 - 5.4.31
- int(1330023283)
- Output for 5.3.20 - 5.3.28, 5.4.0 - 5.4.12
- int(1330023284)
- Output for 5.3.29
- int(1330000668)
- Output for 5.3.0 - 5.3.19
- int(1330023285)
- Output for 5.2.10 - 5.2.17
- Fatal error: Call to undefined method DateTime::createFromFormat() in /in/sO4h2 on line 4
Process exited with code 255. - Output for 5.2.0 - 5.2.9
- Fatal error: Call to undefined method DateTime::createfromformat() in /in/sO4h2 on line 4
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/sO4h2 on line 4
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/sO4h2 on line 4
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Undefined class name 'datetime' in /in/sO4h2 on line 4
preferences:
203.8 ms | 401 KiB | 313 Q