close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Date Search

Thread began 10/07/2009 9:56 am by moniquenw362187 | Last modified 10/09/2009 3:03 pm by Eric Mittman | 1923 views | 5 replies |

moniquenw362187

Date Search

On my Admin pages, I can only search Orders if I type in the entirely date as it appears in my database ("10/3/2009 9:12:05 PM"), if I type in anything else, the search either comes up empty or produces an error.

How can I change it to where we can search orders by just typing in mm/yyyy or something similar?

Sign in to reply to this post

Eric Mittman

The first thing to try would be to update the DataAssist Search server behavior to work with > and < values instead of equals. This should get it so there does not need to be an exact match.

You could also reformat the date in PHP with the strtotime and date functions. Give this a try first and see if it gets the results you are looking for. If you need to do some formatting I can help give you some pointers on that.

Sign in to reply to this post

moniquenw362187

Well, I tried all kinds of combinations of 'Greater Than', 'Less Than', 'Less or Equal To' etc but it didn't seem to make one bit of difference. (Type is still set to "Edit", right?)

So perhaps I need to add some code afterall. I use ASP btw

Sign in to reply to this post

Eric Mittman

I was not aware of using ASP. This changes things a bit since date formatting and other functionality are greatly limited in ASP compared to PHP. Is the data in an access db? If so are you selecting date MS Access as the data type? Please post back with this detail so we have a better idea about the environment. If I need to I will open a ticket so we can exchange some files.

Sign in to reply to this post

moniquenw362187

Thanks, Eric.

After a little searching I learned there is also a function called Date() to use as your default value in your database columns. I was using Now() which adds all the HR, MIN, SEC stuff behind the date... I'm new to all this, i had no idea.

Anyway, after I set the DA Search behavior to "Greater than or equal to", I can now type in "october 2009", and it'll give me all the orders for Oct 09. Problem solved :)

Thanks again!

Sign in to reply to this post

Eric Mittman

I happy to hear that you got that sorted out. Sorry I was able to provide that missing piece to you.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...