# Wrong Year in added by SMT to when writing files to cloud storage

**URL:** https://ask.lenses.io/t/wrong-year-in-added-by-smt-to-when-writing-files-to-cloud-storage/319
**Category:** Apache Kafka Connectors
**Created:** [December 31, 2024, 9:00am UTC](https://ask.lenses.io/t/wrong-year-in-added-by-smt-to-when-writing-files-to-cloud-storage/319 "2024-12-31T09:00:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Andrew\_Stevenson](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/andrew_stevenson/32/80_2.png) [@Andrew\_Stevenson](https://ask.lenses.io/u/Andrew_Stevenson)
#### Post date: [December 31, 2024, 9:00am UTC](https://ask.lenses.io/t/wrong-year-in-added-by-smt-to-when-writing-files-to-cloud-storage/319/1 "2024-12-31T09:00:12Z")

</div>

When using an SMT to insert a date field the year is set to 2025?

---

<div class="post-metadata">

### Author: ![Andrew\_Stevenson](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/andrew_stevenson/32/80_2.png) [@Andrew\_Stevenson](https://ask.lenses.io/u/Andrew_Stevenson)
#### Post date: [December 31, 2024, 9:02am UTC](https://ask.lenses.io/t/wrong-year-in-added-by-smt-to-when-writing-files-to-cloud-storage/319/2 "2024-12-31T09:02:40Z")

</div>

The SMTs use the standard Java data format. Setting YYYY will take the week year, so if the date is 29th Dec 2024, the week year is in 2025.

Use lowercase yyyy. See this post [https://dev.to/shane/yyyy-vs-yyyy-the-day-the-java-date-formatter-hurt-my-brain-4527](https://dev.to/shane/yyyy-vs-yyyy-the-day-the-java-date-formatter-hurt-my-brain-4527)
