Login
|
Signup
langref.org
-
php
add..
all
clojure
cpp
csharp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Dates
Parsing
Parse a date and time from a string
Given the string
"2008-05-06 13:29"
, parse it as a date representing 6th March, 2008 1:29:00pm in the local time zone.
php
echo date("jS F, Y g:i:sa", strtotime("2008-05-06 13:29")); // small version
<?php
echo date("jS F, Y g:i:sa", strtotime("2008-05-06 13:29")); // small version
?>
Submit a new solution for
php
There are 19 other solutions in
additional
languages (
clojure
,
cpp
,
csharp
,
erlang
...)