/ Published in: Java
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 /** * Get the time in defined format * * @return String with time */ return sdf.format(cal.getTime()); }
Comments
                    Subscribe to comments
                
                