Jump to content

[SOLVED] Dates from MYSQL


waynew

Recommended Posts

If these dates are actually yyyy-mm-dd in a mysql DATE type column, you can do things like find the month (extract it or compare it) directly in the query. Mysql has about 20-30 date and time functions that let you do almost anything you need with a DATE, DATETIME, or TIME field. Multiple lines of slow php code is not necessary in most cases.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.