longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

hoveringTooltip - date being hovered #528

Closed creatordigital-paul closed 3 weeks ago

creatordigital-paul commented 5 months ago

I can only get the day number, startTime and hoveringTime when I hover a date?

Can I not get the actual date being hovered over?

monovertex commented 3 weeks ago

Per the parameters at https://longbill.github.io/jquery-date-range-picker/#configuration, the signature for the hoveringTooltip function is: hoveringTooltip: function(days, startTime, hoveringTime).

hoveringTime is the date being hovered, in timestamp format. You can convert that to a date object easily with moment or the native Date class.