# Need Help in converting Julian date in to Calender date

**URL:** <https://discuss.elastic.co/t/need-help-in-converting-julian-date-in-to-calender-date/44140>\
**Category:** Logstash\
**Created:** [March 11, 2016, 10:30am UTC](https://discuss.elastic.co/t/need-help-in-converting-julian-date-in-to-calender-date/44140 "2016-03-11T10:30:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavithrananda\_Prabhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavithrananda_prabhu/32/12220_2.png) [@Pavithrananda\_Prabhu](https://discuss.elastic.co/u/Pavithrananda_Prabhu)\
**Post date:** [March 11, 2016, 10:30am UTC](https://discuss.elastic.co/t/need-help-in-converting-julian-date-in-to-calender-date/44140/1 "2016-03-11T10:30:16Z")

</div>

Need help in converting Julian date in to Calender date Below is the sample Syslog message from the mainframe

N C000000 PROD 15307 23:58:19.27 JOB78042 00000004 $HASP101 OGIVJS11 HELD

would like to convert 15307 in to something like November 3rd 2015.

---

<div class="post-metadata">

**Author:** ![wiibaa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wiibaa/32/44931_2.png) [@wiibaa](https://discuss.elastic.co/u/wiibaa)\
**Post date:** [March 12, 2016, 9:01pm UTC](https://discuss.elastic.co/t/need-help-in-converting-julian-date-in-to-calender-date/44140/2 "2016-03-12T21:01:10Z")

</div>

From what I understand, I suppose you could use a ruby filter with call to the joda time library that should provide something to go from/to julian chronology =\> [http://joda-time.sourceforge.net/apidocs/org/joda/time/DateTimeUtils.html](http://joda-time.sourceforge.net/apidocs/org/joda/time/DateTimeUtils.html)  
Maybe something like could help you, supposing you grokked the julian day into the `julian` field of the event.

```
ruby {
  code => "event['day'] = org.joda.time.DateTimeUtils.fromJulianDay(event['julian'].to_f)"
}
```

---

<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 6, 2017, 5:07am UTC](https://discuss.elastic.co/t/need-help-in-converting-julian-date-in-to-calender-date/44140/3 "2017-07-06T05:07:16Z")

</div>

Closed on July 6, 2017, 5:07am UTC


