dateformat in headless client

hi
I am accessing database using headless client. But while accessing the Date field from the table i am getting the result as in the folowing style
1999-03-31 00:00:00 … How can I convert the data into dd-mm-yyyy format… I am using this in JSP:

<td><input type="text" name="dateofbirth" value="<%=servoy_hc.getDataProviderValue(null,"dateofbirth")%>"></td>

Did a search on google for ‘jsp dateformat’. Checked the first hit.
Seems java.text.* has the functions to format.
Check out the example on that page.

Hope this helps.

Yes, I know, but I would like to have some example how we can use this in the headless client, for example: I can format the date, but do you have to reformat it back to the original dateformat, when I am submitting a form?