Try
tiddler.modified.formatString("YYYY.0MM.0DD)
Morris
On Jan 18, 11:33 pm, yardbird <[email protected]> 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 to sort the foreachtiddler by the input date:
> sortBy
> 'tiddler.data("startdate")'
> However, because it seems to only recognise this field as a string it
> won't sort as a date. I guess I need someway to force the string
> variable into a date.
> Cheers
> Trent
>
> On Jan 16, 9:29 am, AlanBCohen <[email protected]> wrote:
>
> > I'm not a JavaScript programmer, but I'd expect you might get some
> > ideas on formatting dates
> > from;http://www.webdevelopersnotes.com/tips/html/10_ways_to_format_time_an...
> > Some of the complex form examples for FormDataPlugin on the author's
> > site use a mix of JavaScript and ForEachTiddler commands that may also
> > give you some hints.
> > I'll be watching with great curiosity to see how this plays out.
> > Please post the solution if you find it for yourself.
>
> > 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.