I collect Date from my Spring MVC/ Hibernate app using the following code:
String startMembershipDate = request.getParameter("startmembershipdate");
and I am using the following field definition for this field in my entity
@Column(name="MEMBERSHIP_DATE", nullable=false, unique=false)
private Date membershipDate;
So I was wondering if someone can please provide me with an example on how to convert the received date in the JSP to GMT format using Joda-time?
Also shall I change the field definition from Date to DateTime? Timestamp?