This topic is locked

Advanced Search - Date Selection

2/20/2008 6:32:12 PM
PHPRunner General questions
W
wholly author

When I use the Advance Search function, namely date, I use the between function. This gives me two dates to choose from.
this works well however, my problem is the following:
Date field is structured as DATETIME
So to get todays sales I need to select todays date (start) and then tomorrows date (end). This will then show all sales from midnight to midnight.
Is there a way to have the calendar say select sunday as the end date but sumbit monday (+1 day) into the query.
I hope this makes some sense.
wayne

J
Jane 2/21/2008

Hi,
you can do the following:

  1. edit your SQL query on the Edit SQL query tab.

    Here is a sample:
    select

    DateField,

    date(DateField) as DatePart

    from TableName


2. check off DatePart on the advanced search only on the Choose fields tab and uncheck time part (Show time in datapicker option) for this field on the "Edit as" settings dialog on the Visual Editor tab.