5 Replies Latest reply: Mar 19, 2013 7:37 AM by user12276310 RSS

    How to read end Date in date format in OIM 11g ?

    user12276310
      We have a requirement to read the End Date from user profile in yyyy-MM-dd hh:mm:ss format.

      Following code snippet working if we are reading as string

      HashMap<String, String> usrSearch = new HashMap<String, String>();
      usrSearch.put("Users.User ID", userName);
                
      tcResultSet rSet1 = userAPI.findUsers(usrSearch);
                          
      if (rSet1.getRowCount() > 0) {
      rSet1.goToRow(0);
      rSet1.getStringValue("USR_END_DATE"));
      }

      But looking for something like
      Date d= rSet1.getDate("USR_END_DATE");

      Is it right way ? how do we read hh:mm:ss set using API here ?


      Thx
      KK