I know this might be a simple question but Im new to Java, my experience is mostly with PHP or C#.
Im working on an eclipse RCP project and using Google Window Builder.
All I need to do is get the date from a DateTime control named: dateTimeDOB
It must return the date in this format (dd/mm/yyyy) if the day or month value is a single digit it must have a preceding “0”.
I think the DateTime control Type is
org.eclipse.swt.widgets.DateTime
so for example:
String strDate = dateTimeDOB.getDate("dd/mm/yyyy");
thanks in advance
1 Answer