The Baeldung logo
  • The Baeldung LogoKotlin SublogoKotlin Sublogo
  • Start Here
  • Guides ▼▲
    • Kotlin Tutorial

      Learn about the core concepts and basic building blocks of Kotlin.

    • Kotlin Collections

      Learn how to use collections in Kotlin.

    • Kotlin Basics

      Introductory examples for Kotlin.

    • Kotlin Classes and Objects

      Classes and Objects provide the foundation for all Kotlin development.

    • Kotlin with Spring

      Learn how to use the Spring framework with Kotlin.

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Category upKotlin

Kotlin Dates

  • Math (2)

>> Guide to the KotlinX Date/Time Library

>> Guide to Duration in Kotlin

>> How to Calculate the Difference Between Two Time Periods in Kotlin

>> How to Convert Milliseconds to Minutes and Seconds in Kotlin

>> How to Check Leap Year in Kotlin

>> How to Convert a Date Time String to Instant in Kotlin

>> Difference Between Two Dates in Kotlin

>> Get the Current Date/Time in Kotlin

>> Measuring Elapsed Time in Kotlin

>> Working with Dates in Kotlin

The Baeldung logo

Categories

  • Kotlin Basics
  • Kotlin Classes and Objects
  • Spring with Kotlin

Series

  • Kotlin Collections
  • Kotlin Strings
  • Kotlin Tutorial
  • Kotlin Spring
  • Kotlin Coroutines Tutorial

About

  • About Baeldung
  • Baeldung All Access
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms Of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo