[Mapserver-users] Class logical expression - date comparison

Nelson Luna Silvestre nls at myrealbox.com
Wed Dec 4 08:54:23 PST 2002


Hello,

I'm trying to write a logical expression to filter a shapefile's contents
based on a Date type field.

I noticed that it's possible to evaluate a expression like:

('[DATE]'='01-01-2001')

but this is a string comparison that does not takes me far enough...

How do I perform a value-like comparison with dates?

I have tried:
- ([DATE]=dd-mm-yyyy)
- ([DATE]=yyyy-mm-dd)
- ([DATE]=#dd-mm-yyyy#)
- (#[DATE]#=#dd-mm-yyyy#)
- ...
but I'm not having any luck :(




More information about the MapServer-users mailing list