I wanted to come out with a date range picker where shows in picture below. ideal output
Here is my updated code that I doing now and the output I have it now.
Here is my output based on the code. output
I was recently tasked with implementing a date range picker similar to the one in Google Analytics. After a bit of searching around I found this JQueryUI widget that works very well, and can be styled easily using JQueryUI's ThemeRoller.
Unless you're learning or practising, then using existing code, assets and libraries is almost always the best option. The phrases "Don't reinvent the wheel" and "Standing on the shoulders of giants" tend to get tossed around in classrooms and lecture halls for this very reason!