You are not logged in Log in Join
You are here: Home » Members » Chui Tey » How to search on date-time fields using ZSQL Methods

Log in
Name

Password

 

How to search on date-time fields using ZSQL Methods

BACKGROUND

In dtml, we can easily restrict the rows we select if they were strings, integers or floats. However, restricting the rows we select by dates is not straightfoward, especially if you are using the ODBC DA. This is how I got mine to work.

HOW

arguments:

Mydate:date

Query template:

select * from activity where activity_date= { ts '<dtml-var Mydate fmt=ISO>'}