refs #5073 adaptacion para solo el año #1397
|
@ -114,12 +114,14 @@ export default class Calendar extends FormInput {
|
||||||
let day = date.getDate();
|
let day = date.getDate();
|
||||||
let wday = date.getDay();
|
let wday = date.getDay();
|
||||||
let month = date.getMonth();
|
let month = date.getMonth();
|
||||||
|
let year = date.getFullYear();
|
||||||
|
|
||||||
const currentDay = Date.vnNew().getDate();
|
const currentDay = Date.vnNew().getDate();
|
||||||
const currentMonth = Date.vnNew().getMonth();
|
const currentMonth = Date.vnNew().getMonth();
|
||||||
|
const currentYear = Date.vnNew().getFullYear();
|
||||||
|
|
||||||
let classes = {
|
let classes = {
|
||||||
today: day === currentDay && month === currentMonth,
|
today: day === currentDay && month === currentMonth && year === currentYear,
|
||||||
weekend: wday === 6 || wday === 0,
|
weekend: wday === 6 || wday === 0,
|
||||||
previous: month < this.month,
|
previous: month < this.month,
|
||||||
current: month == this.month,
|
current: month == this.month,
|
||||||
|
|
Loading…
Reference in New Issue