i am using following one but couldn't get currectly .please give me the correct one.i used grigorian calendar
ps=con.prepareStatement("insert into leave(username,empid,date,ip_address,status,morning) values(?,?,curdate(),?,'L',curtime()) ");
Determine current date and current time and then store those values into database. Don't use functions curdate and curtime with the query.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.