Skip to main content
Question

Can't parse year value

  • May 1, 2018
  • 1 reply
  • 5 views

Hey,

I'm unable to parse a single year value. It says it needs a month and day value. Is there a way to get past this?

@TimeZoneSet(@DateTimeParse(@Value(Year),%Y),local)

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • May 1, 2018

You could try:

@TimeZoneSet(@DateTimeParse(@Value(Year)-01-01,%Y-%m-%d),local)