How to convert string to time and compare with current time?

Hi @lovepong66 ,

if want to convert String to time use below code

yourTimeTtring = “18:32”

CDate(“yourTimeTtring”).ToString(“HH:mm”)

which against you want to compare, try to explain with example

Thanks,
Rajkumar