Changeset 0226942 in Git for src/main/java/com/wediscussmovies/project/model/Person.java
- Timestamp:
- 02/08/22 22:07:07 (3 years ago)
- Branches:
- main
- Children:
- 967b414
- Parents:
- ad4243e (diff), c02189f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Mato-77 <56981531+Mato-77@…> (02/08/22 22:07:07)
- git-committer:
- GitHub <noreply@…> (02/08/22 22:07:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Person.java
rad4243e r0226942 6 6 7 7 import javax.persistence.*; 8 import javax.swing.text.DateFormatter; 8 9 import java.sql.Date; 10 import java.time.LocalDate; 11 import java.time.format.DateTimeFormatter; 9 12 import java.util.Collection; 10 13 … … 73 76 74 77 78 public String getDateFormatted(){ 79 String dob = dateOfBirth.toString(); 80 String [] parts = dob.split("-"); 81 return parts[2]+"/"+parts[1]+"/"+parts[0]; 82 } 83 75 84 76 85 public Person(String name, String surname, Character type, Date dateOfBirth, String imageUrl, String description) {
Note:
See TracChangeset
for help on using the changeset viewer.