Date in CSV files

Hello guys. I did the exercise correctly, but in the folder where I created the csv files, the date appears normal, except for the year, which appears YYYY. Can anyone help me?

Hi @Miguel_Vieira - Welcome to the forum!

Can you please specify what exercise you’re refering to? What is your input in regards to the date? Also, in what format do you want the output to be in?

Regards,
JM

This is what happens to me. The date appears correct but the year does not.

Hi,

I guess you use .ToString("YYYYMMdd"). However, it should be .ToString("yyyyMMdd") . Can you try this?

Regards,

1 Like

Hello @Miguel_Vieira

Probably problem will be in default setting of language in your computer. I faced the same problem when I did process for Netherlands and the configuration of date “yyyy” did not work because they had years started with “j”.

1 Like

Hi,

You are correct. Thank you so much !

1 Like

This lists all the date format specifiers.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.