daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
  2. Date date = inputFormat.parse(iResultSet1.getString(i));
  3. DateFormat outputFormat = new SimpleDateFormat("hh:mm:ss");
  4. String outputString = outputFormat.format(date);
  5.    
  6. if (iResultSet1.getDate(i) != null) {
  7.                             Date date = iResultSet1.getDate(i);
  8.  
  9.                             System.out.println("date-->" + date);
  10.                             // Format date into output format
  11.                             DateFormat outputFormat = new SimpleDateFormat(
  12.                                     "HH:mm:ss");
  13.                             String outputString = outputFormat.format(date);
  14.  
  15.                             // System.out.println("date1-->"+date1);
  16.    
  17. SELECT TIME_FORMAT(NOW(), '%H:%i:%s');
  18.    
  19. Date date = iResultSet1.getDate(i);
  20.    
  21. DateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
  22. Date date = inputFormat.parse(iResultSet1.getString(i));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top