Hi i have String 28/02/2021 12:34PM i need to extract only DD/MM/yyyy in output anyone can please help me
strInput = “28/02/2021 12:34PM”
strOutput = 28/02/2021
Thanks in advance
Hi i have String 28/02/2021 12:34PM i need to extract only DD/MM/yyyy in output anyone can please help me
strInput = “28/02/2021 12:34PM”
strOutput = 28/02/2021
Thanks in advance
@Shriharsha_H_N - Try like this…
StrInput = Regex.Matches(“28/02/2021 12:34PM”,“[1]+”)(0).ToString
StrInput is of type String…
Write Line ==> StrReplace
Output: 28/02/2021
0-9/ ↩︎
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.