How to add minutes on time data type

CDate(timePost).AddHours(Timr_Increase).ToString(“hh:mm tt”)

Hi @Deepak_Gautam

Try dt1.addminutes(“timeincrease”).To string("HH:mm:as:tt’)

Thanks
Ashwin.S

1 Like

CDate(timePost).AddHours(Timr_Increase/60).ToString(“hh:mm tt”)

Devide by 60 is working

Thanks

Hi @Deepak_Gautam

Minutes can be Added ta a DateTime Variable as shown below -

Now.AddMinutes(2) : Here we are adding 2 minutes to the current time.

Hope it will help you

Regards
Gokul

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