Skip to content
Subjects
Code examples
Library reference
Computer Programming
Python
Java
C++
C
Go
PHP
Kotlin
Ruby
R
Scala
Groovy
Tutorial menu
×
Subjects
Computer Programming
Maths
Planned
Chemistry
Planned
Lesson contents
Programming resources
All languages
Code examples
Library reference
Programming languages
Python
Java
C++
C
Go
PHP
Kotlin
Ruby
R
Scala
Groovy
Tutorials
/
Computer Programming
/
Ruby
/
Library
/
Dates and time
Ruby dates and time
Calculate a delivery date or count nights between bookings.
Date#-
Date#strftime
Date.iso8601
Search this section
Search
Date.iso8601
Validate and advance a calendar deadline
Date#-
Count nights in a leap-year hotel stay
Date#strftime
Print a consistent date on a receipt
All Ruby library sections