Dates and Tinderbox

Tinderbox automatically keeps track of two dates: Created (the date and time when a note was first made), and Modified (the date and time when the note was most recently changed). You can create your own date attributes, too; for example, Published might be the date when a note was first added to the public version of your Web site.

Agents can use dates to good effect. A container for weblog items, for example, might automatically timestamp a note whenever it's added, whether freshly-created or moved from another place. Or an agent could collect all news items whose ReleaseDate has already arrived, but not items whose ReleaseDate is still in the future.

Many weblog writers want to display dates associated with their notes; Tinderbox offers great flexibility in date formatting. To include any date, simply add the placeholder ^Get() to your template:

^Get(modified)^

To format dates, add a second argument to ^Get:

^Get(modified,"format-string" )^

where "format-string" describes the way you want the date to appear.

Format strings let you present dates and times in exactly the way you wish. They can appear in your language or in English, in whatever style you prefer.

format stringresult
LMonday, March 25, 2002 (local time, in long format, using the system format settings
l3-25-2002 (local time, in short format, using the system format settings
d25 (day of month)
m3 (number of month)
M Mar (abbreviation of month)
MM March (name of month)
w Mon (abbreviation of weekday)
W Monday (weekday)
y 2002 (year)
t 2:32 pm (time, in local format)
* RFC-822 internet formatted time
\ includes the following character literally, even if it has a special meaning
any other character include the character

DownloadNow.jpg

Try Tinderbox 4.0.0

for Mac OS X. What's new?More download options.

Buy Tinderbox

Tinderbox for you, for your team, or your enterprise. Plus upgrades, The Tinderbox Way, and more.


What's New?


Learn About Tinderbox

Using Tinderbox

Tutorials

Syndication

EXCHANGE
Tinderbox Public File Exchange

TINDERBOX
Tinderbox news


Subscribe!

Keep in touch with Tinderbox! Moderated, concise, and timely; we never share your email address.

Your name:
email:

Made with Tinderbox!