Afficher un message
Vieux 04/09/2007, 10h10   #2
Janwillem Borleffs
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Calendar and date functions

Otis schreef:
> PHP is driving me mad with their idiotic way of dealing with dates and
> date conversions - unless I'm the idiot.
>
> Here's what I need:
>
> Let's assume the date is $d = "09/03/1951" - Sep 3, 1951
>
> How do I get just the year from a date like Sep 3, 1951?
> How do I get just the day from a date like Sep 3, 1951?
> How do I get just the month from a date like Sep 3, 1951?
>


Use the calendar extension:

http://www.php.net/calendar


JW
  Réponse avec citation
 
Page generated in 0,04703 seconds with 9 queries