Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Americanizing Dates & Times

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Americanizing Dates & Times

Post 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.
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Americanizing Dates & Times

Post 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.
Cheers,
Ray, Cheshire.

Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Americanizing Dates & Times

Post 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.
Steve
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: Americanizing Dates & Times

Post 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
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Americanizing Dates & Times

Post by RayProudfoot »

How about something like this taken from another html document...

<td> on <#YearHighDailyTempRangeD format="mm/d/yyyy hh:nn am/pm"></td>
Cheers,
Ray, Cheshire.

Image
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: Americanizing Dates & Times

Post by Buford T. Justice »

RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Americanizing Dates & Times

Post by RayProudfoot »

Buford T. Justice wrote:Almost done:

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

Image
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: Americanizing Dates & Times

Post by Buford T. Justice »

I like the : as it is proper to use it for a list which follows it.
Post Reply