How to convert .csv files to .xlsx files

how to convert .csv files to .xlsx files

date.AddMonth(-1)

Hi,

The following might help you

Regards,

Assign: The added or subtracted value results in an un-representable DateTime.
Parameter name: months.

i used this but getting this error

i used this but value i am not geting

Hi,

Do you have any error?

Regards,

Assign: The added or subtracted value results in an un-representable DateTime.
Parameter name: months

this is the error i am getting

Hi,

You’re right. The following image might help you.

Or can you share your expression as screenshot or file?

Regards,

it is fine and correct but i need only date no timings required

Regards,

Hi,

Can you try to use dateTimeVar.ToString("MM/dd/yyyy") instead of dateTimeVar.ToString?

Regards,

1 Like

It is working fine thank you .

Regards

1 Like

Here is an additional way to work with dates relative to the current date and to convert it to string format.
Dates in string format.txt (1.9 KB)

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