Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6982

Re: how format one date

From Salvatore <sal@yojimbo.hack.invalid>
Newsgroups comp.lang.php, alt.comp.lang.php, alt.php
Subject Re: how format one date
Followup-To comp.lang.php
Date 2012-09-07 13:48 +0000
Organization Yojimbo NNTP server
Message-ID <k2ctvd$3191$1@yojimbo.hack> (permalink)
References <167rucpmv69q.h70u289ic3i6$.dlg@40tude.net>

Cross-posted to 3 groups.

Followups directed to: comp.lang.php

Show all headers | View raw


On 2012-09-07, nawfer <novalidsforspam@alt.al> 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++

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how format one date nawfer <novalidsforspam@alt.al> - 2012-09-07 15:28 +0200
  Re: how format one date Salvatore <sal@yojimbo.hack.invalid> - 2012-09-07 13:48 +0000
    Re: how format one date nawfer <novalidsforspam@alt.al> - 2012-09-07 16:56 +0200
      Re: how format one date Salvatore <sal@yojimbo.hack.invalid> - 2012-09-07 15:10 +0000
        Re: how format one date nawfer <novalidsforspam@alt.al> - 2012-09-07 17:20 +0200
          Re: how format one date Salvatore <sal@yojimbo.hack.invalid> - 2012-09-07 15:39 +0000
            Re: how format one date nawfer <novalidsforspam@alt.al> - 2012-09-13 16:29 +0200
          Re: how format one date Luuk <luuk@invalid.lan> - 2012-09-07 22:05 +0200
      Re: how format one date Tim Streater <timstreater@greenbee.net> - 2012-09-07 19:07 +0100
        Re: how format one date bill <william@TechServSys.com> - 2012-09-07 15:28 -0400
          Re: how format one date Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-08 00:19 +0200
            Re: how format one date Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-08 00:22 +0200

csiph-web