opend_at date change

BheemavarapuTej
Tera Expert

opend_at date change

 

function onSubmit() {
    if (g_form.getValue('category' == '')) {

        g_form.showFieldMsg('category', 'category is require', 'error');

        return false;

    } else {
        g_form.setValue('caller_id', g_user.userID);
    alert(new Date());
        g_form.setValue('opened_at',new Date());
       


        return true;

    }


}
1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @BheemavarapuTej 

Try to format the date before setting.

For ref.

Screenshot_20250311-192247~2.png

Hope this helps.

Regards,

Siva

View solution in original post

1 REPLY 1

J Siva
Tera Sage

Hi @BheemavarapuTej 

Try to format the date before setting.

For ref.

Screenshot_20250311-192247~2.png

Hope this helps.

Regards,

Siva