String conversion to Data Type

Hi!

I’m having an issue with a string convertion. I’m getting a date from a document but it’s coming like this: March 15th, 1982. So I used regex and built a dictionary to convert the month names into numbers but my dictionary is (Of String, String) and not (Of String, Int32). So after splitting my data, I made the thing below:
Screenshot_9

After that, I’m trying to convert this String above in a Data Type variable like this but it does not work at all. I don’t want a datatime variable.
Screenshot_10

What’s wrong? Thank you for your attention! :slight_smile:

Hey, did you try like this ?

myMonths(strBirthMonth).ToString

1 Like

Yes but nothing happens too

1 Like

Hi,

Can you share value of DateParsing variable?

Regards,

1 Like

Before converting, can you show me what value are you getting when you just maintain a string ? Are you successfully able to get the string “15/03/1982” ?

Hi, Yoichi. That’s the first image attached.

Yeah, this is happening in the first image attached.

Hi,

Can you share not expression but specific value? We can get it using WriteLine activity or LogMessage activity.

Regards,

Yes, sure!

ASAP I’ll attach it here. Thank you for your support.

1 Like

I’ve solved that. Thank you guys.

1 Like

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