Android Question Easy one?

Discussion in 'Android Questions' started by deyan666, Jul 17, 2015.

  1. deyan666

    deyan666 Member Licensed User

    Dim SignOnToMidnight as period
    Dim midnight as Long = 0000


    SignOnToMidnight = DateUtils.PeriodBetween(DateTime.TimeParse(EditText2), DateTime.TimeParse(midnight))

    I Keep getting an error saying object converted to string, programming mistake?

     
  2. DonManfred

    DonManfred Expert Licensed User

    TimeParse needs an STRING as parameter, not an long

    Code:
    SignOnToMidnight = DateUtils.PeriodBetween(DateTime.TimeParse(EditText2.Text), DateTime.TimeParse("00:00"))
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice