Parse year and month of a String

How did you parse year and month from a string?

I’m sure it can be done with a simple (?) regex search … Kem ? :wink:

ooooooooooh, let me test it

the String is the following: 2015-01-01 03/58/02

Dim s As String = "2015-01-01 03/58/02" Dim d As New Date() d.SQLDatetime = s.ReplaceAll("/", ":")