# String to Date

**URL:** <https://discourse.julialang.org/t/string-to-date/79741>\
**Category:** New to Julia\
**Tags:** dates\
**Created:** [April 20, 2022, 2:30pm UTC](https://discourse.julialang.org/t/string-to-date/79741 "2022-04-20T14:30:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gjh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gjh/32/31762_2.png) [@gjh](https://discourse.julialang.org/u/gjh)\
**Post date:** [April 20, 2022, 4:13pm UTC](https://discourse.julialang.org/t/string-to-date/79741/4 "2022-04-20T16:13:26Z")

</div>

This was useful. Sorry that I did not find it before posting the question.

> [@Parsing a CSV file with 2-digit year](https://discourse.julialang.org/t/parsing-a-csv-file-with-2-digit-year/14876):
>
> I have a file with dates formatted like this: 5/7/10 2:11 for the date 2010-5-7 and the time 2:11 am. I’m having the hardest time getting that read in properly. I’m trying something like CSV.read("Data.csv", dateformat=dateformat"m/d/yy H:M"), but my dates are all formatted like this: 0010-5-7. I have two questions about this: a) What happened to the yy formatting in Julia 1.0? Am I mis-remembering this from Python? b) How can I read this data in with the right dates? Many thanks for any …

> <https://stackoverflow.com/questions/69371986/converting-2-digit-date-year-in-string-to-a-date-object>

---

_[View the full topic](https://discourse.julialang.org/t/string-to-date/79741)._
