Author Topic: 12 hour format?  (Read 1115 times)

0 Members and 1 Guest are viewing this topic.

Offline David9723

  • Senior Member
  • **
  • Posts: 84
12 hour format?
« 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>

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 337
    • Wilmslow Astro
Re: 12 hour format?
« Reply #1 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
Mark

Offline David9723

  • Senior Member
  • **
  • Posts: 84
Re: 12 hour format?
« Reply #2 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.
« Last Edit: February 13, 2015, 07:44:04 PM by David9723 »

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 337
    • Wilmslow Astro
Re: 12 hour format?
« Reply #3 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>
Mark