# How to convert to DateTime all column or array?

**URL:** <https://discourse.julialang.org/t/how-to-convert-to-datetime-all-column-or-array/2421>\
**Category:** New to Julia\
**Tags:** dates, convert\
**Created:** [March 3, 2017, 10:30am UTC](https://discourse.julialang.org/t/how-to-convert-to-datetime-all-column-or-array/2421 "2017-03-03T10:30:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Post date:** [March 3, 2017, 10:48am UTC](https://discourse.julialang.org/t/how-to-convert-to-datetime-all-column-or-array/2421/2 "2017-03-03T10:48:41Z")

</div>

I think `convert.` should work in Julia 0.6 but if you want something that’ll work in Julia 0.5 then this will work:

`map((x) -> convert(DateTime,x),events[:,2])`

---

_[View the full topic](https://discourse.julialang.org/t/how-to-convert-to-datetime-all-column-or-array/2421)._
