# Date format in scientific notation. ES v1.5 / v2.3 incompatibility

**URL:** https://discuss.elastic.co/t/date-format-in-scientific-notation-es-v1-5-v2-3-incompatibility/60657
**Category:** Elasticsearch
**Created:** [September 15, 2016, 11:27pm UTC](https://discuss.elastic.co/t/date-format-in-scientific-notation-es-v1-5-v2-3-incompatibility/60657 "2016-09-15T23:27:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xavi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavi/32/10194_2.png) [@xavi](https://discuss.elastic.co/u/xavi)
#### Post date: [September 15, 2016, 11:27pm UTC](https://discuss.elastic.co/t/date-format-in-scientific-notation-es-v1-5-v2-3-incompatibility/60657/1 "2016-09-15T23:27:25Z")

</div>

Hello,

I'm currently in the middle of migrating our elasticsearch cluster from v1.5 to v2.3. Most very went smoothly except this one date issue:

## Old Request:

POST [http://my-elasticserach-v15-cluster/logs-2016.09.16/daily-logs/1](http://my-elasticserach-v15-cluster/logs-2016.09.16/daily-logs/1)

**Body** :

```auto
{"Timestamp": 1.473977633e+12, "hi": "hi"}

```

**Response** :

```auto
{
  "_index": "logs-2016.09.16",
  "_type": "daily-logs",
  "_id": "1",
  "_version": 1,
  "created": true
}

```

## New Request:

POST [http://my-elasticserach-v23-cluster/logs-2016.09.16/daily-logs/1](http://my-elasticserach-v23-cluster/logs-2016.09.16/daily-logs/1)

**Body** :

```auto
{"Timestamp": 1.473977633e+12, "hi": "hi"}

```

**Response** :

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [Timestamp]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "failed to parse [Timestamp]",
    "caused_by": {
      "type": "illegal_argument_exception",
      "reason": "Invalid format: \"1.473977633e+12\" is malformed at \".473977633e+12\""
    }
  },
  "status": 400
}

```

It seems like v1.5 accepted dates in scientific notation but v2.3. Is there get the old behavior back? This is what my v2.3 index template looks like:

```auto
"timestamp": {
    "type": "date",
    "format": "dateOptionalTime||date_time||epoch_millis||epoch_second"
},

```

Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 10:19pm UTC](https://discuss.elastic.co/t/date-format-in-scientific-notation-es-v1-5-v2-3-incompatibility/60657/2 "2017-07-05T22:19:53Z")

</div>


