Il js possiede un congruo supporto al trattamento delle date... qui trovi molte info