Is this code right? I want to obtain the tick value of a date "Thedate" registered in a database as date (AAAA-MM-JJ). It seems it does not work.
What is the the syntax of "DateTime.DateTimeParse(Mydate,"")" if I want only date and not time. (I have not time in the database)
What is the the syntax of "DateTime.DateTimeParse(Mydate,"")" if I want only date and not time. (I have not time in the database)
B4X:
Dim Mydate, Newdate, As Long
Mydate = M.Get("Thedate")
DateTime.DateFormat="AAAA-MM-JJ"
DateTime.TimeFormat="H:mma"
Newdate = DateTime.DateTimeParse(Mydate,"")