[tw] Re: Formatting a date string inside foreachtiddler macro

2010-01-19 Thread yardbird
OK, I've kind of made progress with this one, with some of the answers (sort of)... Firstly, I've resorted to just entering data in the forms in the same format and I've chosen .MM.DD as the standard format, that way when the foreachtiddler macro (or any other macro for that matter) runs that

[tw] Re: Formatting a date string inside foreachtiddler macro

2010-01-18 Thread Morris Gray
Try tiddler.modified.formatString(.0MM.0DD) Morris On Jan 18, 11:33 pm, yardbird trent.jor...@gmail.com wrote: Thanks Alan, I played with this for a while but couldn't get it to work for me as a script. I've realised my bigger problem with what I'd like to do is that, I'd really like

[tw] Re: Formatting a date string inside foreachtiddler macro

2010-01-18 Thread AlanBCohen
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 at http://dev.w3.org/html5/markup/input.date.html Specifies that its input element is

[tw] Re: Formatting a date string inside foreachtiddler macro

2010-01-18 Thread yardbird
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