Skip to content

Instantly share code, notes, and snippets.

@vnegi10
Created July 25, 2020 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vnegi10/0983cdb7a6270dea376e29421230dd99 to your computer and use it in GitHub Desktop.
Save vnegi10/0983cdb7a6270dea376e29421230dd99 to your computer and use it in GitHub Desktop.
date_strings = names(data_df)[5:end]; # read dates from the column names
format = Dates.DateFormat("m/d/y") # specify given format
x = parse.(Date, date_strings, format) .+ Year(2000) # Year(2000) converts year from 0020 to 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment