Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Time is shown as NaN Format

$
0
0

Hi Rohit,

 

Check the pattern ones.

SimpleDateFormat f = new SimpleDateFormat("kk:mm:ss");

 

or

   Date date =newDate();
  date
.setHours(date.getHours()+ 12);
  
System.out.println(date);
  
SimpleDateFormat simpDate;
   simpDate
=newSimpleDateFormat("kk:mm:ss");
  
System.out.println(simpDate.format(date));


May be help for you.


 

Best regards,

Durga Rao.



Viewing all articles
Browse latest Browse all 8124

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>