You can sort by date having both the day, month, and year within one field.
In your .cfg file you would setup up the field for example:
'Date' => [ 8,'date',10,10,0,&get_date,'']
To easily setup your files to use a defined sort order what I do is to define in the .cfg file:
$sort_field ='8'; ### sort order for this database
$sortorder = 'descend'; ### last first
Then in your footer for viewing include for example:
print qq!| <A HREF="$db_script_url?db=profile&uid=$db_uid&view_records=1&$db_key=*&sb=$sort_field&so=$sortorder">List All</A> !;
then you can also add these extra lines to the forms in subs:
sub html_view_search
sub html_view_failure
<input type=hidden name="sb" value="$sort_field">
<input type=hidden name="so" value="$sortorder">
For displaying a partial date please check out this thread reference either here or in the FAQ noted below:
mm/dd/yy format -- yes, it's been covered but i can't get it to work!
jherusalem
05-Nov-2002
In the FAQ it is titled: Displaying partial dates under the "Dates" section
Hope this helps
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/