Skip to content
bbminfo – Learn from Scratch
Subjects Code examples Library reference
Computer Programming Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy Rust Dart Mojo Zig Julia Swift C# JavaScript TypeScript

Tutorial menu

Subjects

Computer Programming MathsPlanned ChemistryPlanned

Lesson contents

Programming resources

All languages Code examples Library reference

Programming languages

Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy Rust Dart 🔥 Mojo Zig Julia Swift C# JavaScript TypeScript
Tutorials/Computer Programming/R/Library/Dates and time

R dates and time

Calculate a delivery date or count nights between bookings.

Date subtractionformat.Dateseq.Date and as.Date
  • seq.Date and as.DateGenerate month starts across a leap year
  • Date additionCalculate a delivery date across leap day
  • Date subtractionCount nights in a leap-year hotel stay
  • format.DatePrint a consistent date on a receipt

All R library sections

R tutorials

Environment setup› Library reference› Data structures›
Advertisements
bbminfo – Learn from Scratch
© 2026 bbminfoArtwork creditsPrivacy policy