5
What happens here? Why is an instance of Date
in this example:
String dataFormatada = new Date().format("dd/MM/yyyy")
Already in this example was not used the new
:
def data = Date.parse('dd/MM/yyyy', '31/12/1980')
When I should wear the new or not?
I think if I made a merge of that answer with that of durtto it would be quite complete :)
– Math
The jbueno has already edited his :D
– Gustavo Cinque