|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
date and time
I have a html form and a jsp page saving the information added in the form to the database. What I want to do in my jsp page is when I am recieving the parameters from the html page I want to generate the date and the time and save them as strings seperately into my database along with the rest of my strings. Is this possible?
![]() |
|
#2
|
|||
|
|||
|
Yeah. You can either use the database to generate them, or you can do Calendar.GetInstance(), and then use all the get methods on it to construct a string of the format you want.
Important Note: for some obscure reason january is month 0 not month 1 and it counts from there, which is very weird, but was the same in the Date class aswell. You'd have thought that they'd do it for days of the month too, but no...they come out completley fine! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > date and time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|