Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.enother.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!yojimbo.hack!news.tokachu.com!.POSTED!not-for-mail From: Salvatore Newsgroups: comp.lang.php Subject: Re: how format one date Date: Fri, 7 Sep 2012 15:10:49 +0000 (UTC) Organization: Yojimbo NNTP server Lines: 24 Message-ID: References: <167rucpmv69q.h70u289ic3i6$.dlg@40tude.net> <1guuas2go7c0i$.1aviei1ybpcod$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: yojimbo.hack "kq(Iga%czn" X-Complaints-To: usenet(at)tokachu(dot)com User-Agent: slrn/0.9.9p1 (FreeBSD) X-Watermark: "Q( wrote: > if have this string > "06/09/2012 - 23:50" > > how can have this > 2012-09-06T23:50:00 Ah! I understand now. What you want to do is parse the European-style string using strptime(). Here's a code example: -- Blah blah bleh... GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++