#1 2018-02-28 14:01:12

array81
Member
From: Italy
Registered: 2010-07-23
Posts: 411

Right way to pass DateTime from HTML form on MVC/MVVM Web application

I have a HTML form with a date field. I need pass this date to Delphi procedure and save it DB as TDateTime (I have a TSQLRecord on my model with a TDateTime field).

What is the right way to pass this date from HTML to Delphi?
I have try to define a TDateTime parameter on Delphi procedure but I get and error from Delphi when submit the form. So I have try to define a RawUTF8 parameter on Delphi procedure this avoid the Delphi error but the date (converted by Iso8601ToDateTime) is not save on DB.

Offline

Board footer

Powered by FluxBB