Date time format fixed

Hi expert

I wanted to write a excel cell with today’s date and format is dd/MM/yyyy, however when the write activity wrote the date into excel cell the format automatically changed to MM/dd/yyyy

I have used a message box to test the variable but the format changed when write in excel cell.

Below is the screenshot
IMG_1333

Hi @Waka

Use format cell activity to change the format as per your requirement

Check out this tutorial

Check out this thread

Regards
Gokul

Hi,

Can you try FormatCells activity a the following?

OR

Add ' (single quote) at the begging of the date string?

Regards,

@Waka : Please refer to below screenshot working fine for me.

OutputFile screenshot:

Hi all

Below is my conversion method

Hi,

One of the simplest way, if it’s no problem the date is text type in the sheet, the following will help you.

"'" + todayDate.ToString

If the above is not good, it’s necessary to use FormatCells activity, for example.

Regards,

I can’t use “ ‘ “ +todaydate.tostring becoz at the later flow I would need to read the date again to filter the data table records

Hi,

All right. Can you try to use “UseExcelFile” ,“WeriteCell” and “Format Cells” as the following

Regards,