How to manage various date format in a csv file

#1

Hello,

I have to create a CSV file with various date format. Up to now, I use:

using DataFrames
using Dates
format_date_1=“yyyymmddHHMMSS”
format_date_2=“yyyymmdd”
df_out=DataFrame(hre_deb_calc=DateTime[DateTime(“20190402161901”,format_date_1)],jour_prevu=DateTime[DateTime(“20190326”,format_date_2)])
CSV.write(“resultat.csv”, df_out, delim=";", dateformat=format_date_1);

Of course, the CSV file is the following:
hre_deb_calc;jour_prevu
20190402161901;20190326000000

Nevertheless, I would like to obtain:
hre_deb_calc;jour_prevu
20190402161901;20190326

But, I do not succeed to manage diffrent date format with CSV.write

Could you help me ?

Thanks !

NB : When I use

CSV.write(“resultat.csv”, df_out, delim=";")

I obtain (which is not OK):

hre_deb_calc;jour_prevu
2019-04-02T16:19:01.0;2019-03-26T00:00:00.0