Split date format "dd.MM.-dd.MM.yyyy"

Hello Everyone,

How can I split the following string : 15.03.-21.03.2021 and get two different string which would be 15.03. and 21.03.2021

Thanks in advance

Hi,

Can you try the following expression?

arrStr = "15.03.-21.03.2021".Split("-"c)

arrStr(0) returns 15.03.
arrStr(1) returns 21.03.2021

note: arrStr is String[] type

Regards,

@Yoichi Thanks a ton, It worked

1 Like

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