Filter specific value from date

@"Load on GSL KALLIOPI / 313N
09 Apr 2023 02:00

I want 09 Apr 2023, from above but everytime position of date change
I got output from above using str_ATSDate.ToString.Substring(28,11).Replace(" “,”/")

but next time it fails.

eg. next time date will be in other position

@"Load on GSL Ind / 319N
19 May 2023 02:00

All time Load on is fixed.

Every time want date dd MMM yyyy
Some one please help me on this.

Hi @satish.rathi59

You can use the following RegEx to extract the data, regardless of it’s changing position:

\d{2}\s\w{3}\s\d{4}

Hope this helps,
Best Regards.

1 Like

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