Hi, How can insert value into sql server column of data type 'datetime' with jdbc the methods in java.sql are 'setdate()' and 'setTime()'
pls how can i do this. I'm using java.time.LocalDateTime.
and that's your problem. You need a java.sql.Timestamp which is a java.util.Date.
However read the description for Timestamp carefully because despite the inheritance from Date the behavior is different than Date.