Is there any way to save / view date in our prefered format ? like dd/MM/yyyy instead of using simple date format everytime I save the date fields ?
for example:
I would like to have
class User {
Date birthDay ;
}
the user will save the birthDay as ’31/12/1988′ for example and I would like to display it as that … without format(“dd/MM/yyyy”) everytime I found the date (or converting string to date) for saving / updating)
You can use metaClass to display the date in wanted format.