Advertisement
vim_fans

Untitled

Sep 10th, 2021
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1.  
  2. //This way only get YYYY-MM-DD how could I add time's part into it?
  3. PreparedStatement statement = con.prepareStatement(sql);
  4. long millis = System.currentTimeMillis();
  5. Date date = new Date(millis);
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement