Ruby makes playing with dates a breeze using its built-in Date class and the active_support gem for some extra sugar.
Date
active_support
Ruby simplifies our lives with the Date class.
Ruby makes it super easy to play around with dates and strings.
Ruby’s standard library includes the Date and Time classes for handling dates and time.
Time
In Ruby, the standard library provides direct ways to parse dates from strings using the Date and DateTime classes.
DateTime