<p>According to the documentation for the <a href="http://sgroup.com.au/plugins/feedme/importing-content/field-types#date-time" rel="nofollow noreferrer">Date field</a>, Feed Me uses <a href="http://php.net/manual/en/function.date-parse.php" rel="nofollow noreferrer">date_parse</a> to parse a provided date string into a proper date object. <code>date_parse</code> uses <code>strtotime</code> underneath, which seems to have issues with timestamps.</p>

<p>I just wanted to confirm your timestamp though, as it seems to not produce the correct date for me using:</p>

<pre><code>echo date('Y-m-d H:i:s', 1457685095000);

// Results in
48162-03-15 06:23:20
</code></pre>

CC BY-SA 4.0
2020-09-17T00:19:41.223Z
I believe that's a timestamp in milliseconds. Divide by 1,000 to get it in seconds as expected by that function.
J.D. Sandifer
CC BY-SA 3.0
2016-11-22T23:32:42.930Z
2016-11-22T23:32:42.930Z
crawf
<p>I have a Unix timestamp in my feed (1457685095000) and I am trying to map it to the date created entry field and I have another that I am trying to map to a time input field. </p>

<p>The created date is setting the date to a wildly incorrect value and the time field isn't getting set at all. </p>

<p>Any help would be appreciated.</p>

<datetime><plugin-feedme>
Importing Unix timestamp into date time field
# Importing Unix timestamp into date time field

(Asked by: username_0 on 2016-11-22)

I have a Unix timestamp in my feed (1457685095000) and I am trying to map it to the date created entry field and I have another that I am trying to map to a time input field.

The created date is setting the date to a wildly incorrect value and the time field isn't getting set at all.

Any help would be appreciated.

**Tags:** datetime, plugin-feedme

---

## 1 answers

### Answer by username_1 on 2016-11-22. Score: 2

According to the documentation for the Date field, Feed Me uses date_parse to parse a provided date string into a proper date object. date_parse uses strtotime underneath, which seems to have issues with timestamps.
I just wanted to confirm your timestamp though, as it seems to not produce the correct date for me using:
echo date('Y-m-d H:i:s', 1457685095000);

// Results in
48162-03-15 06:23:20

> **Comments:**
> **username_2**: I believe that's a timestamp in milliseconds. Divide by 1,000 to get it in seconds as expected by that function.  

---

