Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!yojimbo.hack!news.tokachu.com!.POSTED!not-for-mail From: Salvatore Newsgroups: comp.lang.php,alt.comp.lang.php,alt.php Subject: Re: how format one date Followup-To: comp.lang.php Date: Fri, 7 Sep 2012 13:48:29 +0000 (UTC) Organization: Yojimbo NNTP server Lines: 22 Message-ID: References: <167rucpmv69q.h70u289ic3i6$.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 one of this date so > > Thu, 06/09/2012 - 23:50 > Thursday, 6 September, 2012 - 23:50 > Thu, 06/09/2012 - 23:50 > 06/09/2012 - 23:50 > > how can have this > 2012-09-06T23:50:00 > > and finally to have the seconds 1346968200 I'm not sure if you're asking how to *format* a date or how to *parse* a date. If you want to format a date, given a timestamp, use either the date() function or the strftime() function. If you want to parse a date, given a string, use either the strtotime() function or the strptime() function. -- Blah blah bleh... GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++