Date picker v.2.0

Enter number or title containing number

Date picker is a tool for those who post excerpts from grammars and commentaries, and pieces of analysis.

The titles of these posts contain numbers and order of titles should match numerical values of numbers, as here: "§ 1", "§ 2", "§ 3", ... "§ 10", "§ 11", "§ 12", etc. Or as here: ..., "Verse 528", "Verse 529-530", "Verse 531", "Verses 531-533", "Verses 533-535" etc.

Such ordering of titles is achieved by setting posting dates. Date picker script automatizes process of calculating dates for entries. It takes as an input a string containing one or two numbers (the second must be bigger than the first at least by 1) in the range between 1 and 9999, and outputs a date formatted for use in ExpressionEngine's PUBLISH page.

In order to understand how Date picker works three cases should be taken into consideration.

Case A. String contains one integer. The script will produce a date which is later than any date it outputs for any string containing one lesser number and earlier than any date it outputs for any any string containing one bigger number. E.g if string contains integer "108" the script will output a date which is later than date it outputs for string containing integer "107" and earlier than date it outputs for string containing integer "109".

Case B. String contains two integers, and the second is bigger than the first at least by 1 but no more than 59. E.g. string contains integers "210" and "240". The script will produce a date which is (a) later than the date it outputs for string containing one integer "210", (b) later than any date it outputs for string containing two integers, one of which is "210" and the second is in the range between 211 and 239, and (c) earlier than any date it outputs for string containing two integers, one of which is "210" and the second is in the range between 241 and 269, and (d) earlier than the date it outputs for string containing one integer "211".

Case C. String contains two integers, and the second is bigger than the first by more than 59. E.g. string contains integers "321" and "398". The script will produce a date which is the same as the date it will produce for a string containing the integer "321" and an integer bigger than this by 59, that is, the same date as for string containing integers "321" and "380".

Error occured:

Success!

Logging in...

Logging out...

Login

Username

Password

Auto-login on future visits

Commenting has not been set up for this page.