Android Question AnotherDTP.Getdate to date

Discussion in 'Android Questions' started by DanteS, Jul 14, 2015.

  1. DanteS

    DanteS Member Licensed User

    The methode Getdate of AnotherDTP shows a date in the box, but if you need to operate it, for example to send it to a database, you get an error because the box contains the date in a long variable.
    How can I convert it to text?
     
  2. DonManfred

    DonManfred Expert Licensed User

    Code:
    DateTime.Date(DTPvalue)
     
    lemonisdead, DanteS and Erel like this.
  3. DanteS

    DanteS Member Licensed User

    Thanks Don
    First I had to do DateTime.DateFormat="MM/dd/yyyy" and then DateTime.Date(dtp_bdate.GetDate)
     
Loading...