Hi all,

I used Timestamp data type in mysql
and
Date object in jsp.
Now my question is how can I store system`s current Date n Time in Timestamp field using jsp?

Uhm, new Timestamp(dateVar.getTime()), maybe? (Combinded with PreparedStatements setTimestamp, of course.) You are doing this stuff in external Java Classes (earlier Beans, now POJOs), right?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.