Answers.Body: <p>Okay, I feel supremely stupid.</p>
  
  <p>I put</p>
  
  <pre><code>date('F n, Y - g:i A')
  </code></pre>
  
  <p>Should be</p>
  
  <pre><code>date('F j, Y - g:i A')
  </code></pre>
  
  <p>Total brain fart. ಠ_ಠ</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-09T22:52:19.190Z
Answers.Text: Thanks for following up with an answer, Dustin! Don't forget to accept it.
Answers.UserDisplayName: Matt Stein
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-03T00:20:17.120Z
Answers.LastActivityDate: 2016-01-03T00:20:17.120Z
Answers.UserDisplayName: Dustin C
Body: <p>I'm trying to sort entries on a page by a custom field, by date and time. I have sample data over several entries with different dates and times, and where I want it to show the date of the event, it shows "January 1, 2016" (with the correct time) for all events, instead of the date and time of the <code>eventStartDT</code> field.</p>
  
  <pre><code>{% for entry in craft.entries.section('events').order('eventStartDT').limit(4) %}
  
      &lt;div class="uk-width-large-1-3 uk-width-medium-1-2 uk-width-small-1-1 uk-container-center" style="margin-bottom:25px;"&gt;
          &lt;a class="fpcLink" href="#"&gt;
              &lt;div class="frontPageContent"&gt;
                  &lt;div class="fpcInner"&gt;
                      &lt;span class="text-content"&gt;&lt;span&gt;&lt;i class="uk-icon-calendar uk-icon-large"&gt;&lt;/i&gt;&lt;h3&gt;EXPLORE&lt;/h3&gt;&lt;/span&gt;&lt;/span&gt;
                  &lt;/div&gt;
  
                  &lt;div class="fpcLower"&gt;
                      &lt;h3&gt;{{ entry.title }}&lt;/h3&gt;&lt;p&gt;{{ entry.eventStartDT | date('F n, Y - g:i A') }}&lt;/p&gt;&lt;p class="uk-text-small"&gt;{{ entry.shortEventDescription }}&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/a&gt;
      &lt;/div&gt;
  
  {% endfor %}
  </code></pre>
  
Tags: <templating>
Title: Date returns wrong
ThreadText: # Date returns wrong
  
  (Asked by: username_0 on 2016-01-02)
  
  I'm trying to sort entries on a page by a custom field, by date and time. I have sample data over several entries with different dates and times, and where I want it to show the date of the event, it shows "January 1, 2016" (with the correct time) for all events, instead of the date and time of the `eventStartDT` field.
  
  ```
  {% for entry in craft.entries.section('events').order('eventStartDT').limit(4) %}
  
      <div class="uk-width-large-1-3 uk-width-medium-1-2 uk-width-small-1-1 uk-container-center" style="margin-bottom:25px;">
          <a class="fpcLink" href="#">
              <div class="frontPageContent">
                  <div class="fpcInner">
                      <span class="text-content"><span><i class="uk-icon-calendar uk-icon-large"></i><h3>EXPLORE</h3></span></span>
                  </div>
  
                  <div class="fpcLower">
                      <h3>{{ entry.title }}</h3><p>{{ entry.eventStartDT | date('F n, Y - g:i A') }}</p><p class="uk-text-small">{{ entry.shortEventDescription }}</p>
                  </div>
              </div>
          </a>
      </div>
  
  {% endfor %}
  
  ```
  
  **Tags:** templating
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-01-03. Score: 3 | Accepted answer
  
  Okay, I feel supremely stupid.
  
  I put
  
  ```
  date('F n, Y - g:i A')
  
  ```
  
  Should be
  
  ```
  date('F j, Y - g:i A')
  
  ```
  
  Total brain fart. ಠ\_ಠ
  
  > **Comments:**
  > **username_1**: Thanks for following up with an answer, username_0! Don't forget to accept it.  
  
  ---
  
  