Please help iam trying to post 03/02/2020 date format to the database
but it refusing with this error
but it refusing with this error
B4X:
ResponseError. Reason: Internal Server Error, Response: {"Message":"An error has occurred."}
B4X:
{"Names":"nnmm","Class":"P2","DOB":"01\/01\/1970","Yeard":"2020","Fname":"bbb","Fmobile":"","Femail":"","Mname":"","Mmobile":"","Memail":"","Type":"Father","Sender":"0782911364"}
B4X:
Dim Subscriptiondetailsm As Map
Subscriptiondetailsm.Initialize
Subscriptiondetailsm.put("Names",LTrim(RTrim(Names.Text)))
Subscriptiondetailsm.put("Class",spnFirstName.SelectedItem)
Dim lt As Long
DateTime.DateFormat = "dd/MM/yyyy" ' "1961-08-29"
Dim datestring As String = DateTime.Date(JsonDateToTick( DOB.Text))
lt = DateTime.DateParse(datestring)
DateTime.DateFormat = "dd/MM/yyyy"
Log(DateTime.Date(lt))
Subscriptiondetailsm.put("DOB",DateTime.Date(lt))
Subscriptiondetailsm.put("Yeard",Yeard.Text)
Subscriptiondetailsm.put("Fname",LTrim(RTrim(fname.Text)))
Subscriptiondetailsm.put("Fmobile",LTrim(RTrim(fmobile.Text)))
Subscriptiondetailsm.put("Femail",LTrim(RTrim(femail.Text)))
Subscriptiondetailsm.put("Mname",LTrim(RTrim(mname.Text)))
Subscriptiondetailsm.put("Mmobile",LTrim(RTrim(mmobile.Text)))
Subscriptiondetailsm.put("Memail",LTrim(RTrim(Memail.Text)))
Subscriptiondetailsm.put("Type",sx)
Subscriptiondetailsm.put("Sender",Phoneq)
Dim json As JSONGenerator
json.Initialize(Subscriptiondetailsm)
Dim contentr As String = json.ToString
'Depends on okHttputils library
Dim clientb As HttpJob
clientb.Initialize("",Me)