CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Date Problem

Print topic Send  topic

Author Message
Milosz
Posted: 02/25/2005, 7:22 AM

Hi, I've a problem with this query=
SELECT * FROM calendario
WHERE EXTRACT(YEAR_MONTH FROM data_da) <=EXTRACT(YEAR_MONTH FROM CURDATE())

I think is a format date problem. I use dd/mm/yyyy date display.
PeterJ


Posts: 90
Posted: 02/26/2005, 11:21 AM

Hi

Your date needs to be as yyyy-mm-dd for this to work
View profile  Send private message
RonB

Posts: 228
Posted: 02/28/2005, 12:28 PM

SELECT * FROM calendrio
where date_format(data_da ,'%Y-%m') <=date_format( current_date() ,'%Y-%m')

should do the trick

Ron
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.