Skip to content

Date styling in the view and @DateTimeFormat(pattern = "yyyy-MM-dd") annotation in the model

Notifications You must be signed in to change notification settings

StudentsAdministration/06_dateformating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

#6 Date formating

Date styling in the view and @DateTimeFormat(pattern = "yyyy-MM-dd") annotation in the model

Model

In the entities (here student.java class) you will need to specify the dataformat in order to make it work (be aquvalent) to the format in the view.

// needed for input field on html pages (in order to serve the right format)
@DateTimeFormat(pattern = "yyyy-MM-dd") 
private Date enrollmentDate;

View

About

Date styling in the view and @DateTimeFormat(pattern = "yyyy-MM-dd") annotation in the model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published