I am new here. I have a custom table where my CPT data is being saved. However, I want to add two DATETIME fields for my database columns Created_On and Modified_On. The idea is to insert the current datetime in Created_On column when the form is being submitted the first time and then if it is edited/modified then current datetime to only update the Modified_On column without updating the Created_On column.
I am somehow missing something. Can someone please help me with the right direction how to achieve this?