I know it is a bit trivial question but I need some reference. I am developing project in SpringBoot backend and frontend in Angular. I have to store date of birth, plane arrival and departure date. At the moment, I stored it as a String:
@Column(nullable = false, length = 15)
private String dateArrival;
Later in Angular I would make proper validation and set date format. On the other hand, maybe this whould be better practise
@Column(nullable)
@Temporal(TemporalType.TIME)
private Date dateArrival;
What's more, if I would like to sent request via Postman what whould be proper format for Date? As String I have more flexibility.
Cheers