Infolinks In Text Ads

Jun 27, 2010

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;
    }

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...