lifemankind Form changes Asthakind - Bemisaal Budhwaar
Specific Folder FTP Upload / ftp-deploy (push) Successful in 36s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 36s
Details
This commit is contained in:
parent
8ed924dedb
commit
7036316753
|
|
@ -355,24 +355,13 @@
|
||||||
|
|
||||||
var date = new Date(selectedDate + 'T00:00:00');
|
var date = new Date(selectedDate + 'T00:00:00');
|
||||||
|
|
||||||
var monthNames = [
|
var monthName = date.toLocaleString('en-US', {
|
||||||
'January',
|
month: 'short'
|
||||||
'February',
|
});
|
||||||
'March',
|
|
||||||
'April',
|
|
||||||
'May',
|
|
||||||
'June',
|
|
||||||
'July',
|
|
||||||
'August',
|
|
||||||
'September',
|
|
||||||
'October',
|
|
||||||
'November',
|
|
||||||
'December'
|
|
||||||
];
|
|
||||||
|
|
||||||
var monthName = monthNames[date.getMonth()];
|
var year = String(date.getFullYear()).slice(-2);
|
||||||
|
|
||||||
$('#field-month_of_activity').val(monthName);
|
$('#field-month_of_activity').val(monthName + '-' + year);
|
||||||
$('#field-month_of_activity').prop('readonly', true);
|
$('#field-month_of_activity').prop('readonly', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue