<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>End time in a calender</title>
        <link>https://interactivetools.com/forum/forum-posts.php?End-time-in-a-calender-82104</link>
        <description></description>
        <pubDate>Mon, 13 Apr 2026 10:09:36 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;End-time-in-a-calender-82104" rel="self" type="application/rss+xml" />

                <item>
          <title>End time in a calender</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244190#post2244190</link>
          <description><![CDATA[<p>Perfect, thank you. I did try that before but must have got it in the wrong place. Again, thank you.</p>]]></description>
          <pubDate>Fri, 11 Oct 2019 04:01:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244190#post2244190</guid>
        </item>
                <item>
          <title>End time in a calender</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244187#post2244187</link>
          <description><![CDATA[<p>Hi MercerDesign,</p>
<p>For the end date, you should be able to copy how date() and strtotime() is being used to format the start date. Something like this:</p>
<pre class="language-php"><code>&lt;?php echo date("g:i a", strtotime($record['end_time'])) ?&gt;</code></pre>
<p>As well, here's a quick reference for the different formatting codes that can be used in the date() function: <a href="https://www.php.net/manual/en/function.date.php" rel="nofollow">https://www.php.net/manual/en/function.date.php</a></p>
<p>Let me know if that does the trick.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Thu, 10 Oct 2019 10:35:36 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244187#post2244187</guid>
        </item>
                <item>
          <title>End time in a calender</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244184#post2244184</link>
          <description><![CDATA[<p>Hi, I have this code and it does work so that if an end time is not put into the CMS editor nothing will show but I need it to display in the same time format as the start time, so in a 12 hour clock format and without the date reference, I have tried different things but i just can't get it to work:</p>
<p>&lt;h3&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/h3&gt;<br />&lt;p&gt;&lt;strong&gt;&lt;?php echo date("g:i a", strtotime($record['start_date'])) ?&gt;&lt;/strong&gt;&lt;/p&gt;<br />&lt;?php if($record['end_time'] != "0000-00-00 00:00:00") : ?&gt;<br />&lt;?php echo $record['end_time'] ?&gt;<br />&lt;?php endif; ?&gt;<br /><br />&lt;p&gt;&lt;?php echo htmlencode($record['location']) ?&gt;&lt;/p&gt;</p>
<p>So if there is a start and end time I want it to display as <strong>9.30 am - 2.00 pm</strong>, if there is no end time it will just display as<strong> 9.30 am</strong></p>]]></description>
          <pubDate>Thu, 10 Oct 2019 02:39:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244184#post2244184</guid>
        </item>
                <item>
          <title>End time in a calender</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244181#post2244181</link>
          <description><![CDATA[<p>Hi MercerDesign,</p>
<p>I think Jerry has the right idea here. Let me know if you have any more trouble!</p>
<p>Thanks,</p>]]></description>
          <pubDate>Wed, 09 Oct 2019 15:08:55 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244181#post2244181</guid>
        </item>
                <item>
          <title>End time in a calender</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244176#post2244176</link>
          <description><![CDATA[<p>Hi,</p>
<p>Not a lot of specifics, <span class="Medium-Text">and you'd have to check the code and see what format the end time is in</span>, but you could try an if statement in your page that only showed the end time if it was not equal to 0 IE: $your_end_time<span class="Medium-Text"> != "0000-00-00 00:00:00"<br /></span></p>
<p><span class="Medium-Text">Hope that gives you an idea or two.</span></p>
<p>Jerry Kornbluth</p>
]]></description>
          <pubDate>Mon, 07 Oct 2019 04:45:07 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244176#post2244176</guid>
        </item>
                <item>
          <title>End time in a calender</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244175#post2244175</link>
          <description><![CDATA[<p>Hi, I have a calendar and it is working really well but I need to be able to show an end time as well as a start time to an event, I have it got it to show but how can I only show it if an end time is put in?</p>]]></description>
          <pubDate>Mon, 07 Oct 2019 03:24:23 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244175#post2244175</guid>
        </item>
              </channel>
    </rss>
  