how to do?
<t:output format="literal:dd.MM.yyyy" value="myItem.activity.do_create_date"/>
I want to know how to format output of date?
What you have works (in Tapestry 5.2.4). What problem are you having or what more specifically are you trying to do? If you want to get the format from your Java class, here's are example snippets.
.java file:
private String format;
private Date date;
public void setupRender() {
// just an example
format = "dd.MM.yyyy";
date = new Date();
}
public String getFormat() {
return format;
}
public Date getDate() {
return date;
}
.tml file:
<t:output format="format" value="date" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With