This is the first time I am working with java.sql.Timestamp. I need to pass two values one is Start time and end time in my SQL SELECT query.
Start time will be today date and time is 12AM
End time will be yesterday’s date and time is 12AM
Example: Today’s date in Timestamp format is: 2011-08-22 09:42:37.687
Start time: 2011-08-22 and time is 12AM
End time: 2011-08-21 and time is 12AM
Now I have to send it as a Timestamp format to my SQL SELECT statement and also calculate the previous day. Anyone please help me what
java classes I can use here to get the start data and end date.
Thank you very much for your help.