On Jul 28, 2005, at 9:28 AM, Linda H wrote:
Hi,
I must admit I am surprised at the paucity of date and time
functions in PHP.
I have a date stored in a MySQL database in field of datatype date.
PHP doesn't seem to have a function I can use to format it for
print. I tried the following
hi Linda
> I must admit I am surprised at the paucity of date and time
> functions in PHP.
You may want to check out the PEAR Date class:
http://pear.php.net/package/Date
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Linda H wrote:
> Hi,
>
> I must admit I am surprised at the paucity of date and time functions in
> PHP.
>
> I have a date stored in a MySQL database in field of datatype date. PHP
> doesn't seem to have a function I can use to format it for print. I
> tried the following but regardless of the va
Hi,
I must admit I am surprised at the paucity of date and time functions in PHP.
I have a date stored in a MySQL database in field of datatype date. PHP
doesn't seem to have a function I can use to format it for print. I tried
the following but regardless of the value in the date field, it di
Seth Willits wrote:
2) Have a date string representing the first of the month and
manipulate it to be the last day of the previous month.
You can use mktime() for this. To get the last day of a given month,
just give the parameters for the "zeroth" day of the next month. For
example, to get th
On Sunday, September 7, 2003, at 02:50 PM, Seth Willits wrote:
A few things I'm trying to do:
1) Turn "MM/DD/YY" into an array like that returned from getdate(). I
don't want to explode it or split it, I want to get an array just as
if I used getdate() when the current day was MM/DD/YY.
It j
I'm having difficulty with understanding how to manipulate dates. It
seems that there's no date object manipulate so we just pass around a
bunch of values which is kinda of annoying.
A few things I'm trying to do:
1) Turn "MM/DD/YY" into an array like that returned from getdate(). I
don't w
7 matches
Mail list logo