👩💻 Join our community of thousands of amazing developers!
Working with dates can be hard. You need to consider time zones, understand how to store dates in your database, parse strings into dates or even format dates and display them to the user. And there’s the daylight saving time. In this article we’ll see how to use the utilities provided by Rails, so that your system can handle dates correctly. How Ruby works Ruby has basically two different classes for handling dates: Date and Time1. You can generate dates by parsing strings or using individual a...