Re: [PHP] Date confusion

2005-08-01 Thread Burhan Khalid
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

[PHP] Date confusion

2005-07-27 Thread Linda H
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

Re: [PHP] Date confusion

2005-07-27 Thread Rasmus Lerdorf
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 value in

RE: [PHP] Date confusion

2005-07-27 Thread Rob Agar
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

[PHP] Date Confusion

2003-09-07 Thread Seth Willits
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

Re: [PHP] Date Confusion

2003-09-07 Thread Seth Willits
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

Re: [PHP] Date Confusion

2003-09-07 Thread John W. Holmes
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 the