Sql query get month from datetime -
i've got db invoices , datetime created, want have new columm name of month according date of each invoice. mean if date 2013-01-15, have " january" on new columm. in advance, i've few knowledge sql.
if database mysql, try:
date_format(date, '%m')
Comments
Post a Comment