OK.  This is my end result. It works. The problem with sorting is that the 
sort doesn't seem to like a date with the dashes in it; i.e. 2011-09-23; 
but 20110923 DOES work for sorting.  So I let user enter date any way he 
wants and then I convert it to YYYYMMDD format and save it.  I couldn't get 
time stamp to work, but don't need it since this sorts fine (obvioulsy if I 
want a date and time sort, I will have to get a time stamp working somehow!)

The Form:
[form]
/* use existing data field and allow user to modify the date */
/* date is entered as text 28 May 1987, etc or 7/21/2013 etc... */

Publish On:[text pubdate "{:pubdate}" size=14]

/* submit */
[submit name=submit value='SAVE']
/* set target page */
[session target {p}]

/* use time COMMAND (not function!) to convert to a standard SORTABLE date 
format */
[session time "{=pubdate}|%Y%m%d"]
[session pubdatetxt '{=time}']

/*save the data */
[session boltsavedata pubdate,pubdatetxt]

[form]


The Search Command:

{(search group=posts.* type=-header,footer,comments 
template="posts.featured" sort=pubdatets order=reverse count=30)}


NOTE:  I could not get this FORM to work in version 4.01.  So I am still 
sticking with 3.5 for now.

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to