# java Date get real year **Published by:** [wincloud](https://paragraph.com/@wincloud/) **Published on:** 2023-04-03 **URL:** https://paragraph.com/@wincloud/java-date-get-real-year ## Content val date = Date(2021-1900,3,5) val instance = Calendar.getInstance() instance.time = date println(instance.get(Calendar.YEAR)) ## Publication Information - [wincloud](https://paragraph.com/@wincloud/): Publication homepage - [All Posts](https://paragraph.com/@wincloud/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@wincloud): Subscribe to updates