How to convert date in own format java code example

public static String getFormatedDate(String dateFormate, Date date){

        try{
             DateFormat dft = new  SimpleDateFormat(dateFormate);
             return dft.format(date);
        }catch(Exception e){
            e.printStackTrace();
        }
       
        return null;
    }

Comments

Recent Post

Recent Posts Widget

Popular posts from this blog

Capture image from webcam java code, examples

Shallow Copy Deep Copy Java example

Database Connection using NODE JS example