I find it easier to format my data in my application. Use SQL to select the data that you want; use JDBC to fetch that data into variables in your program (e.g., use ResultSet.getDate() to get the value of a date column); use the Java libraries to format the data as you desire (e.g., use SimpleDateFormat to format your date data).

To learn how to use the ResultSet methods such as getDate: http://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html#getDate(int)

To learn how to use SimpleDateFormat: http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

In a Derby DBMS, How can I pad a number with zeros?
i am new to magento and i didn't understand purely about the structure of magento

what problems me is this

$this-&gt;getUrl('fastorder/index/saveOrder')


i need to find where this line refers to used in the following code

 &lt;form id="fastorder-form" action="&lt;?php echo $this-&gt;getUrl('fastorder/index/saveOrder')?&gt;" method="post"&gt;


because my form post values to this location and i need to do few modifications. 

I appreciate the help, thanks
