Hi guys,
using compact framework is there a way to convert a string, for example "12:30" to an actual time as i need to add a certain amount of minutes to a string value and then compare to another time?
Thanks in advance for any help
:afrog:
Printable View
Hi guys,
using compact framework is there a way to convert a string, for example "12:30" to an actual time as i need to add a certain amount of minutes to a string value and then compare to another time?
Thanks in advance for any help
:afrog:
will get minutes and you can get hour with this functionVB Code:
mid("12:30",len("12:30")-2,2)and there should be a function in taht you enter hour minute and second and it converts them to time. then you can add minutes or what you want. After that you can compare...VB Code:
mid("12:30",1,2)
does the compact framework support CDate, or perhaps Date.Parse? I am not that familiar with it but I would assume that it does.
Time handling is perfromed using either the DateTime or TimeSpan types in .NET, depending on the situation. Looking at the MSDN topics for the member listing for each of those types we see that virtually all members are supported on the CF, including the Parse method.