Thanks Alan,
I just tried this, but it didn't seam to help any.  Even though I've
defined it as type=date in the template tiddler, specifically

"<input name=startdate type=date style="width:100%" />"

When you look at the actual tiddler created the data still seems to be
stored as a string.  ie you get:

<<formTiddler ProjectTemplate>><data>
{"projectnumber":"QE09604","startdate":"04/09/2009","closedate":"01/02/2010"}
</data>

So I still thing I need to find some sort of way to convert the date
into a recognised date.

Alternatively perhaps I need to think about being restrictive in the
form about the way dates are entered and force people to select a day,
then month then year, so I can define a format such as YYYY.MM.DD that
when sorted will sort properly.

How do other people manage date fields?

Cheers

Trent


On Jan 19, 12:29 am, AlanBCohen <[email protected]> wrote:
> If you are using FormTiddlerPlugin (or some other technique) to define
> HTML forms for data input and retrieval, then this may be helpful;
> instead of defining the field type="text", use type="date".
> As referred to athttp://dev.w3.org/html5/markup/input.date.html
>     "Specifies that its input element is a control for setting the
> element’s value to a string representing a date."
> I haven't tried it myself since I'm not currently using any date
> fields in my forms; but the docs on ForTiddlerPlugin say you can use
> any valid HTML field.
> Alan
-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.


Reply via email to