Groovy: parsing String to Date


/ Published in: Groovy
Save to your folder(s)



Copy this code and paste it in your HTML
  1. def newdate = new Date().parse("d/M/yyyy H:m:s","21/3/2008 17:30:20");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.