Formated date - custom script

hello,

I made a code where the date from the “date_of_joining” field is inserted into the “current_date” field.
However, I need the field “data_atual” to appear with the format “dd/mm”, but not working.

Here is my code:

frappe.ui.form.on(‘Employee’, {
date_of_joining: function(frm) {

var date1= (frm.doc.date_of_joining);
var date2 = doc.date1.strftime('%d/%m');
    
    cur_frm.set_value("data_atual", date2);

}
});

Thanks