Answers.Body: <p>Try</p>
  <pre><code>{% set recentHistory = order.histories|first %} // get the first order history item
  {{ recentHistory.dateCreated|date ?? 'no history record' }}
  </code></pre>
  <p>there is no <code>date</code> attribute on an order history model, just the <code>dateCreated</code>. So in effect you are passing <code>null</code> to the <code>|date</code> filter which will default to the current time/date.</p>
  <p>You were trying to access the current order status model on the order. There is no dateCreated on the order status model, only the model itself. The date the order status was applied is in the orderHistory models.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-26T12:28:35.767Z
Answers.Text: Thanks Luke, I tried that and for some reason it always seems to default to the current date/time 'now' not sure why - would have thought I would get an error if it was the wrong tag.
Answers.UserDisplayName: Malcolm Maclean
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-27T05:38:56.007Z
Answers.Text: Looks like you hit a bug, track here: https://github.com/craftcms/commerce/issues/1676
Answers.UserDisplayName: Luke Holder
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-27T12:35:22.327Z
Answers.Text: wasn't a bug, just confused over the history model vs the order status model
Answers.UserDisplayName: Luke Holder
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-26T03:37:04.270Z
Answers.LastActivityDate: 2020-08-27T12:35:02.737Z
Answers.LastEditDate: 2020-08-27T12:35:02.737Z
Answers.UserDisplayName: Luke Holder
Body: <p>I am trying to bring some of the order status history from my clients commerce shop orders into a web page. I seem to be able to get the Current/Previous Status (prevStatus/newStatus.name), but cannot seem to get the elements in the attached image - 'Updated By' and 'Date'.</p>
  <p>I have tried a few different tags e.g. 'order.orderStatus.date|datetime' but they just seem to update the the time 'now' rather than the time of the order status change.</p>
  <p>Its probably an obvious answer but i cant find this tag to output-  if anyone can help that would be great</p>
  <p>Thanks
  Malcolm</p>
  <p><a href="https://i.sstatic.net/wI9MT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/wI9MT.png" alt="Order Status History" /></a></p>
  
Tags: <plugin-craftcommerce><ecommerce>
Title: Commerce Order Status History
ThreadText: # Commerce Order Status History
  
  (Asked by: username_0 on 2020-08-25)
  
  I am trying to bring some of the order status history from my clients commerce shop orders into a web page. I seem to be able to get the Current/Previous Status (prevStatus/newStatus.name), but cannot seem to get the elements in the attached image - 'Updated By' and 'Date'.
  
  I have tried a few different tags e.g. 'order.orderStatus.date|datetime' but they just seem to update the the time 'now' rather than the time of the order status change.
  
  Its probably an obvious answer but i cant find this tag to output- if anyone can help that would be great
  
  Thanks
  username_0
  
  [![Order Status History](https://i.sstatic.net/wI9MT.png)](https://i.sstatic.net/wI9MT.png)
  
  **Tags:** plugin-craftcommerce, ecommerce
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-08-26. Score: 2
  
  Try
  
  ```
  {% set recentHistory = order.histories|first %} // get the first order history item
  {{ recentHistory.dateCreated|date ?? 'no history record' }}
  
  ```
  
  there is no `date` attribute on an order history model, just the `dateCreated`. So in effect you are passing `null` to the `|date` filter which will default to the current time/date.
  
  You were trying to access the current order status model on the order. There is no dateCreated on the order status model, only the model itself. The date the order status was applied is in the orderHistory models.
  
  > **Comments:**
  > **username_0**: Thanks username_1, I tried that and for some reason it always seems to default to the current date/time 'now' not sure why - would have thought I would get an error if it was the wrong tag.  
  > **username_1**: Looks like you hit a bug, track here: https://github.com/craftcms/commerce/issues/1676  
  > **username_1**: wasn't a bug, just confused over the history model vs the order status model  
  
  ---
  
  