Formatting date and returning as a string.
public String getDateAsString()
// Returns the date as a sting formatted as dd/mm/yy
SimpleDateFormat formatDate = new SimpleDateFormat("DD/MM/yyyy");
I've gone through loads of tutorials but i just cant seem to find an answer at all. My problem is that i need to format my date field and then return it as a string so it can be accessed by another method. Everywhere seems to only give tutorials and explanations towards formatting and changing it with another string but i dont want to use a pre-set string.
Re: Formatting date and returning as a string.
?? startDate is from the type Date or? So the method will do what you want? I don`t understand the problem....