Re: Date and Time storage in DB
I haven’t even been able to insert items with dates, let alone update them.
My set up:
I have a form that I added a custom field to for date/time.
The date/time is not stored in the table the form is based on.
So I have a onAfterUpdate event that is supposed to be inputted in the secondary table.
Other field values are input just fine in the secondary table but not the date/time form field.
sc_exec_sql("
INSERT INTO
shipping
(inventory_id, shipping_time, tracking_number)
VALUES
('{inventory_id}', '{ship_time}', '{shipping_number}')
");
The inventory and shipping_number form fields are passed just fine but the ship_time is not.
What is the best way to set this up in the form?
P.S. The user is inputting the ship_time into the form.
Here are my settings:
http://globalsnr.com/ship_time.jpg