How To save date and time value in date and time field in sugarcrm using before save logic hook ?

How To save date and time value in date and time field in sugarcrm using before save logic hook ?

Parents
  • Hi Gupta,

    If you want to populate current date time value in date time field then we can achieve this by adding formula in date time field from studio.

    If you want to set date time field with any other value (other than current date time) then you have to write code in create.js file in respective module.

  • Roushan Kumar I think that method would make the date change every time the record is edited

    .

    CRM Business Consultant

Reply Children