I want to initialize datepickerinput with current date. i use code below but is set it to Gregorian today date.
this.date = {year: now.getFullYear(), month: now.getMonth() + 1, day: now.getDate()};//result 2017/09/29
how can i initialize it to Jalali's today date?
I found getToday() in ngb-calendar-persian.ts but i cant use it.
I want to initialize
datepicker
input with current date. i use code below but is set it to Gregorian today date.this.date = {year: now.getFullYear(), month: now.getMonth() + 1, day: now.getDate()};//result 2017/09/29
how can i initialize it to Jalali's today date?I found
getToday()
inngb-calendar-persian.ts
but i cant use it.