Search - Enter a date

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Search - Enter a date

Post by Pagat »

Hi,

i just played around with the Search/Date tab and found out that it's possible to browse through the dates with the arrow keys up/down when the edit box has the focus! Very convenient.

I just tried this because a little while ago i programmed a tool where i also had to input dates and where i implemented exactly this behaviour. And since i tweaked it even further i throw the following into the room:

Code: Select all

Input -> Result (Assuming that it's 08.11.2007

Pressing "down" on empty field -> Yesterday (07.11.2007)
Pressing "up" on empty field -> Today (08.11.2007)

In case the input is one/two digits long assume it's the day of the last 30/31 day-span:
                          
8 -> 08.11.2007
6 -> 06.11.2007
30 -> 30.10.2007
19 -> 19.10.2007
9 -> 09.10.2007

In case the input is three/four digits long do the same with the last 365 day span:

0810 -> 08.10.2007
2008 -> 20.08.2007
045  -> 04.05.2007
2412 -> 24.12.2006

In case it's five/six digits long just insert the delimiter:

130305 -> 13.03.2005

By entering a "-" subtract the number of days from "Today":

-5 ->  03.11.2007
-31 -> 08.10.2007
I can tell you this is very convenient if you have to deal with lots and lots of date-edit fields like in my little app. But i guess the the cost-benefit ratio could be better in this case since working with the drop down menu and templates is also possible.


But you should definitely include a "Tip of the day" for this up/down feature. I couldn't find one in the official tips nor in the wiki.

Suggestion:

Code: Select all

#
Input a search date
You can quickly browse through dates by pressing up/down after focusing the date fields.
#

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Search - Enter a date

Post by lukescammell »

Pagat wrote:

Code: Select all

In case the input is three/four digits long do the same with the last 365 day span:

0810 -> 08.10.2007
2008 -> 20.08.2007
045  -> 04.05.2007
2412 -> 24.12.2006

In case it's five/six digits long just insert the delimiter:

130305 -> 13.03.2005
I like everything barring this. Mainly because I think 2007-11-09 (9th November 2007), Americans think 11-09-2007 and most British think 09-11-2007. Just gets too confusing IMO.

I like the rolling 30/31 day single date entry and the -# for previous days though, I think those are great :)
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

Post Reply