NYCPHP Meetup

NYPHP.org

[nycphp-talk] Top 5 Most Useful PHP Functions?

csnyder chsnyder at gmail.com
Fri Nov 12 11:20:02 EST 2004


On Fri, 12 Nov 2004 07:48:30 -0500, Keith Richardson <keithjr at gmail.com> wrote:
> getdate(strtotime($sql_date_variable)); - to turn sql datetime

strtotime() is a favorite here, too.

I have an ongoing debate with my coworkers about whether it's better
to create select menus for month/day/year/hour/minute/ampm on a form,
or to just provide a text box and strtotime() the result.

Being lazy, I incline to the latter. But the conversation goes: 
"Should I use January 1, 2004? Or 1/1/2004? Or Jan. 1, 2004?"
"Yes."
"That's too confusing!"



More information about the talk mailing list