Re: php & date manupulation functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings Rajesh

On 15 February 2003 at 20:37:31 +0000 (which was 20:37 where I live) Rajesh
Fowkar might have written

< ... >

RF> day($dbdate);
RF> month($dbdate);
RF> year($dbdate);

RF> Am I missing something ? Is there anyway to accomplish the above ? or I
RF> will have to store these three values separatly in the database rather than
RF> as a date.

try

<?
echo date("d",$dbdate)."<br>";
echo date("m",$dbdate)."<br>";
echo date("y",$dbdate)."<br>";
?>

- --
 Bye,                      _______________________________________________
  David                   |    David  Elliott    |   Software Engineer    |
 _________________________| david@elliott.uk.com | PGP Key ID 0x650F4534  |
| "I have my Texas hunting license here..."  -- George Bush               |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 08)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBPk9M9PmK8eZlD0U0EQKSygCgoAF7B5i8VkD9rjanG2S+q9LVPKQAoOHE
jzIOJ4lZW2nVTqLclNF6Ri9g
=tSMK
-----END PGP SIGNATURE-----


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux