Date format to full length

image
First this one but i replace the Time to nothing. Also did this without replacing and gave the same error.
image

So here is the workflow: BlankProcess38.zip (11.5 KB)

2 Likes

First you will remove the 00:00:00.
Then instead of strDate in the message box, use the variable where the date is stored

2 Likes

i did

New one: DateTime.ParseExact(strDate, “dd/MM/yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd-MMMM-yyyy”)

2 Likes

This is the previous one: DateTime.ParseExact(strDate, “dd-MM-yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd-MMMM-yyyy”)

2 Likes

i already use this one

both not working

Please upload the zipped folder of your project :slight_smile:

2 Likes

Contractopstellen.zip (16.9 KB)

1 Like

Please try this: startdatum.Replace(" 00:00:00", “”) instead of startdatum.Replace(“00:00:00”, “”) and
DateTime.ParseExact(startdatum.ToString, “dd/MM/yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd-MMMM-yyyy”) instead of DateTime.ParseExact(startdatum, “dd/MM/yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd-MMMM-yyyy”)

2 Likes

Still the same

Okay. Can you send me the excel file?

1 Like

nope sorry it is confidential information.

Yep! That is what I am thinking.
Please remove the sensitive information. I just need the template and the date column :slight_smile:

2 Likes

For Brian.xls (33.4 KB)
Here you go

Hi @438654,
Please check this sample: BlankProcess39.zip (11.7 KB)

Let me know if this works :slight_smile:

8 Likes

I think we are almost there. The message box displays what we want but assigning it with the same thing as the messagebox still gives the same error. So i think the solution isn’t able with an assign or an Generic Value.

1 Like

Try to add .ToString on the Assign activity

Error that gives me


The assign line

1 Like