0

How to change datetime format for the Datebox?

asked 2019-08-13 20:47:53 +0800

nikfanton gravatar image nikfanton
1 1

updated 2019-08-13 20:54:20 +0800

How to specify a 4 digit year yyyy in the format string. For now, I use a 2 digit year yy and because of that, years above 30 are then interpreted as 19xx.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-14 12:14:53 +0800

cor3000 gravatar image cor3000
5262 2 7
ZK Team

updated 2019-08-14 12:16:56 +0800

Hi Nik,

You can set a 4 digit year in the datebox format by including the token y 4 times -> yyyy:

e.g. (using the pattern "yyyy-MM-dd"):

<datebox format="yyyy-MM-dd"/>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2019-08-13 20:47:53 +0800

Seen: 9 times

Last updated: Aug 14 '19

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More