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...