WXforum.net

Weather Software => Cumulus => Topic started by: David9723 on February 12, 2015, 08:31:10 PM

Title: 12 hour format?
Post by: David9723 on February 12, 2015, 08:31:10 PM
What is the tag to get a 12 hour time? For example these two tags give the high and lows of the day but if one occurs after 1 pm it gives the 24 hour time.

<#TtempTL>
<#TtempTH>
Title: Re: 12 hour format?
Post by: mcrossley on February 13, 2015, 06:06:23 PM
You can add a format option to the tag to display the date/time however you like...

http://wiki.sandaysoft.com/a/Webtags#Time.2FDate_.27format.27_Parameter
Title: Re: 12 hour format?
Post by: David9723 on February 13, 2015, 06:51:32 PM
You can add a format option to the tag to display the date/time however you like...

http://wiki.sandaysoft.com/a/Webtags#Time.2FDate_.27format.27_Parameter

Yes but how do i include that into this tag? <#TtempTH>

<#TtempTH  format="h':'nn"> 
<#TtempTH  format="h nn">

does not work.
Title: Re: 12 hour format?
Post by: mcrossley on February 14, 2015, 04:38:09 AM
But you haven't told it it use 12 hour format by including the am/pm or ampm string.

<#time format=h:nn am/pm>