Date and time input


Click to launch

Entering date and time for astronomical programs require special features: In order to view how the sky moves, we want to increase or decrease the time at different rates (year, month, day etc.). Say we display January 31, and we increase by one month: If the display changes to February 31 the program will be very unhappy.

I use a combination of Javascript libraries moment.js and pikaday.js, along with some CSS formatting.