For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2007 > ΄πΈ΄: [PHP-DB] Values in a date field









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ΄πΈ΄: [PHP-DB] Values in a date field
Jacob

2007-03-17, 6:59 pm


$date=3DGetdate($subsciption_begins);
$month=3D$date[mon]
-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: Ron Piggott [mailto:ron.php@actsministries.org]=20
=B7=A2=CB=CD=CA=B1=BC=E4: 2007=C4=EA3=D4=C217=C8=D5 21:45
=CA=D5=BC=FE=C8=CB: PHP DB
=D6=F7=CC=E2: [PHP-DB] Values in a date field


I have a $subscription_begins variable. It the date type. YYYY-MM-DD

How may I find out the month value (1 to 12) of this variable?

Ron
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com