FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how format one date
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how format one date [message #179056 is a reply to message #179055] Fri, 07 September 2012 14:56 Go to previous messageGo to previous message
nawfer is currently offline  nawfer
Messages: 34
Registered: August 2011
Karma:
Member
Il Fri, 7 Sep 2012 13:48:29 +0000 (UTC), Salvatore ha scritto:

> On 2012-09-07, nawfer <novalidsforspam(at)alt(dot)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.

if have this string
"06/09/2012 - 23:50"

how can have this
2012-09-06T23:50:00
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Converting eps to png
Next Topic: Never log deprecation warnings
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 15:59:02 GMT 2024

Total time taken to generate the page: 0.04295 seconds