Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Period not working #30

Open
guruprasadBlore opened this issue Oct 27, 2017 · 0 comments
Open

Period not working #30

guruprasadBlore opened this issue Oct 27, 2017 · 0 comments

Comments

@guruprasadBlore
Copy link

guruprasadBlore commented Oct 27, 2017

Hi,

The period selection option is not working for me at all.Below is my piece of code.
`$(".daterangepicker-field").daterangepicker({
forceUpdate: true,
ranges:{
'Last 30 days': [moment().subtract(29, 'days'), moment()],
'Last 90 days': [moment().subtract(89, 'days'), moment()],
},
periods:['month','quarter','year'],
period: ('month' | 'quarter' | 'year')
},
function (startDate, endDate, period) {
$(this).val(startDate.format('L') + ' – ' + endDate.format('L'))

});`

Below is screenshot

my_daterange_picker

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant