Page 1 of 1

Americanizing Dates & Times

Posted: Sat 12 Jan 2013 6:16 am
by Buford T. Justice
I have been editing the HTML in order to display dates and times in the formats we use here in the USA. I have done it all except for a little problem on recordT.htm. I am trying to do this, but the code doesn't seem to work:

Code: Select all

<#recordsbegandate format="mmmm d, yyyy">
Is the #recordsbegandate tag non-formattable?

I still need to do monthlyrecordT.htm, but it looks a bit daunting.

Re: Americanizing Dates & Times

Posted: Sat 12 Jan 2013 10:04 am
by RayProudfoot
Hi Bulford,

I suspect the comma is causing the problem. Here's what my formatting looks like.

format="'at' hh:mm 'on' d mmmm yyyy"

Try placing a pair of single quotes either side of the comma if you want to retain it.

You're quite right in saying monthlyrecordT is daunting but the effort is worthwhile.

Re: Americanizing Dates & Times

Posted: Sat 12 Jan 2013 10:20 am
by steve
There's no user-selectable formatting on <#recordsbegandate>, it's fixed at "dd mmmm yyyy". I could add it, but the easiest solution is just to hard code it, since you're having to edit it anyway.

Re: Americanizing Dates & Times

Posted: Sat 12 Jan 2013 8:28 pm
by Buford T. Justice
I wound up just entering the date my records started.

I have been playing around with a backup copy of monthlyrecordT.htm and I am still having a heck of a time trying to figure out where to put the formatting command without breaking the rest of the page.

I just want it to use a date and time format like this:

1/12/2013 12:05 AM

Re: Americanizing Dates & Times

Posted: Sat 12 Jan 2013 10:31 pm
by RayProudfoot
How about something like this taken from another html document...

<td> on <#YearHighDailyTempRangeD format="mm/d/yyyy hh:nn am/pm"></td>

Re: Americanizing Dates & Times

Posted: Sun 13 Jan 2013 1:02 am
by Buford T. Justice

Re: Americanizing Dates & Times

Posted: Sun 13 Jan 2013 9:55 am
by RayProudfoot
Buford T. Justice wrote:Almost done:

http://tinyurl.com/WS62694-1
Looks okay. You just need to lose the colon after 2013.

Re: Americanizing Dates & Times

Posted: Sun 13 Jan 2013 11:13 pm
by Buford T. Justice
I like the : as it is proper to use it for a list which follows it.