I actually want to parse time having am/pm information, my sample code is:
DateTime.TimeFormat = "hh:mm a"
Log(DateTime.Time(DateTime.Now))
Dim data As String = "05:00 pm"
Log(DateTime.Time(DateTime.TimeParse(data)))
This code is working on other phones except for few Samsung phones, I want this to work perfectly on all phones.
When I am using a.m. or p.m. (with periods), then it is working correctly on Samsung Galaxy J7 but not on others (see attachments).
DateTime.TimeFormat = "hh:mm a"
Log(DateTime.Time(DateTime.Now))
Dim data As String = "05:00 p.m."
Log(DateTime.Time(DateTime.TimeParse(data)))