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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -