dateformat in headless client

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

dateformat in headless client

Postby Harjo » Sat Feb 18, 2006 2:23 pm

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:

Code: Select all
<td><input type="text" name="dateofbirth" value="<%=servoy_hc.getDataProviderValue(null,"dateofbirth")%>"></td>
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby ROCLASI » Sun Feb 19, 2006 5:13 pm

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.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby Harjo » Sun Feb 19, 2006 5:31 pm

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?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 6 guests