java - Play 2 Framework add days to Date -
i got simple play template following structure.
@(order : order){ <html><p> date @order.orderdate.format("dd'.'mm'.'yyyy")</p></html> }
i add 2 days printed date direct in template.
thanks help
got it
@{ import java.util.calendar val neworderdate = calendar.getinstance() neworderdate.settime(order.orderdate) neworderdate.add(calendar.day_of_month, 2) neworderdate.gettime().format("dd'.'mm'.'yyyy") }
Comments
Post a Comment