[TW5] How to change the format of the {{!!created}} when used in a tiddly

120 views
Skip to first unread message

Pieter-Michiel Geuze

unread,
May 20, 2015, 6:29:07 PM5/20/15
to tiddl...@googlegroups.com
Hello all

I am listing the field {{!!created}} in my tiddler and it shows as Tue Apr 21 2015 10:03:00 GMT-0400 (Eastern Standard Time). I am hoping to change that to a DD MMM YYYY HHMM format. What is the syntax to adjust the field?

Greg Davis

unread,
May 20, 2015, 7:15:39 PM5/20/15
to tiddl...@googlegroups.com

Eric Shulman

unread,
May 20, 2015, 8:12:43 PM5/20/15
to tiddl...@googlegroups.com
On Wednesday, May 20, 2015 at 3:29:07 PM UTC-7, Pieter-Michiel Geuze wrote:
I am listing the field {{!!created}} in my tiddler and it shows as Tue Apr 21 2015 10:03:00 GMT-0400 (Eastern Standard Time). I am hoping to change that to a DD MMM YYYY HHMM format. What is the syntax to adjust the field?

You don't actually "adjust the field"... it contains a numeric value the represents the date/time.

What you want to do is change the way that field is viewed in your output.

To do this, use the <$view> widget, like this:

<$view field="created" format="date" template="DD MMM YYYY 0hh:0mm"/>

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

Pieter-Michiel Geuze

unread,
May 28, 2015, 12:04:00 PM5/28/15
to tiddl...@googlegroups.com
Thank you for the response. I appreciate the example fields so I can see the answer at work.
Reply all
Reply to author
Forward
0 new messages