Excel date format to message box


#1

In my excel, this is my date format:
image

but in the message box it is
image

PLEASE HELPPPP. I want the message box to display the same as the excel


#2

Try this Datetime.ParseExact(yourdatevariable,“mm/dd/yyyy”,Globalization.CultureInfo.InvariantCulture)
also refer this post it may help


#3

@qaz1 follow this url Excel split month and year from date


#4

Hi thanks for the reply.

Now i am reading it cell by cell. So it does not work.


#5

I am reading cell by cell. So i think that URL does not apply to me…

Sorry I am new to uipath


#6

Use in message box dateValue.ToString(“dd/MM/yyyy”). Where dateValue - your datetime variable.


#7

image

still the same result…


#8

@qaz1 Can you attach your workflow and excel file


#9

qaz.xaml (6.2 KB)
A2407.xlsx (9.1 KB)


#10

@qaz1 check attached updated file is working

qaz.xaml (6.2 KB)


Change date from excel
#11

Thank you very much. Actually I must input my excel to a third party system. So i was just trying it out at a message box first. So do you mind telling me what you did?


#12

just changed data type from generic to date


#13

Ohhh okay. Thank you so much!!!