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


Groups > comp.lang.php > #8562 > unrolled thread

How to get the system date in PHP

Started byNorah Jones <nh.jones01@gmail.com>
First post2013-03-07 05:35 -0800
Last post2013-03-09 07:24 -0800
Articles 5 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  How to get the system date in PHP Norah Jones <nh.jones01@gmail.com> - 2013-03-07 05:35 -0800
    Re: How to get the system date in PHP Kevin Peterson <qh.resu01@gmail.com> - 2013-03-07 05:38 -0800
      Re: How to get the system date in PHP Kevin Peterson <qh.resu01@gmail.com> - 2013-03-07 05:51 -0800
        Re: How to get the system date in PHP Luuk <luuk@invalid.lan> - 2013-03-09 11:36 +0100
          Re: How to get the system date in PHP iarethebest@gmail.com - 2013-03-09 07:24 -0800

#8562 — How to get the system date in PHP

FromNorah Jones <nh.jones01@gmail.com>
Date2013-03-07 05:35 -0800
SubjectHow to get the system date in PHP
Message-ID<e70a2e98-33c5-4f06-8c06-8ef242c29b9b@googlegroups.com>


[toc] | [next] | [standalone]


#8563

FromKevin Peterson <qh.resu01@gmail.com>
Date2013-03-07 05:38 -0800
Message-ID<f30d683a-ca4d-4188-81a0-4064ef6c5c0b@googlegroups.com>
In reply to#8562
On Thursday, March 7, 2013 7:05:02 PM UTC+5:30, Norah Jones wrote:
> 

Try 
echo 'Now:       '. date('Y-m-d') ."\n";

[toc] | [prev] | [next] | [standalone]


#8564

FromKevin Peterson <qh.resu01@gmail.com>
Date2013-03-07 05:51 -0800
Message-ID<04b9940e-d49a-4b43-bc8a-b2bdfbf0493f@googlegroups.com>
In reply to#8563
On Thursday, March 7, 2013 7:08:25 PM UTC+5:30, Kevin Peterson wrote:
> On Thursday, March 7, 2013 7:05:02 PM UTC+5:30, Norah Jones wrote:
> 
> > 
> 
> 
> 
> Try 
> 
> echo 'Now:       '. date('Y-m-d') ."\n";

Try this also 
<?php $mysqltime = date ("Y-m-d H:i:s", $phptime); ?>

[toc] | [prev] | [next] | [standalone]


#8610

FromLuuk <luuk@invalid.lan>
Date2013-03-09 11:36 +0100
Message-ID<2ufr0a-4uh.ln1@luuk.invalid.lan>
In reply to#8564
On 07-03-2013 14:51, Kevin Peterson wrote:
>
> Try this also
> <?php $mysqltime = date ("Y-m-d H:i:s", $phptime); ?>
>

PHP Notice:  Undefined variable: phptime in Command line code on line 1

[toc] | [prev] | [next] | [standalone]


#8614

Fromiarethebest@gmail.com
Date2013-03-09 07:24 -0800
Message-ID<97bcc820-db3b-4751-825f-7e55df71bf24@googlegroups.com>
In reply to#8610
On Saturday, March 9, 2013 4:36:22 AM UTC-6, Luuk wrote:
> On 07-03-2013 14:51, Kevin Peterson wrote:
> 
> >
> 
> > Try this also
> 
> > <?php $mysqltime = date ("Y-m-d H:i:s", $phptime); ?>
> 
> >
> 
> 
> 
> PHP Notice:  Undefined variable: phptime in Command line code on line 1

I don't think I'm seeing all of the replies here (OP's message body is blank, and Kevin formatting it for MySQL seems completely random) but I'm pretty sure he meant:

<?php $mysqltime = date ("Y-m-d H:i:s", time()); ?> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web