Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to format ddmmmyyyy to ddmmyy in java

    SimpleDateFormat format1 = new SimpleDateFormat("MM/dd/yyyy");
    SimpleDateFormat format2 = new SimpleDateFormat("dd-MMM-yy");
    Date date = format1.parse("05/01/1999");
    System.out.println(format2.format(date));
Comment

PREVIOUS NEXT
Code Example
Java :: javafx action event enter key 
Java :: internet permission in android studio 
Java :: java add text to GUI 
Java :: send message to all player java spigot 
Java :: reading in lines from a file java 
Java :: spring boot resource optional request param 
Java :: java remove file extension from file name 
Java :: javafx listview get item index 
Java :: edittext hint color 
Java :: android back navigation 
Java :: Duplicate class android.support.v4.app. 
Java :: java how to get deltaTime 
Java :: how to make jframe visible 
Java :: java remove first element from array 
Java :: java pause console 
Java :: java method to capitalize first letter 
Java :: how to register event spiot 
Java :: puissance java 
Java :: java get location of jar file 
Java :: how to convert a hexadecimal number to a decimal inside a println in java 
Java :: java 2d game tutorial 
Java :: how to change orientation of linearlayout in recyclerview android 
Java :: java get last element of list 
Java :: go to activity android 
Java :: button background color not changing android 
Java :: how to get date android studio 
Java :: throw io exception java 
Java :: concurrent modification exception 
Java :: close scanner java 
Java :: how to find power of a number in java 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =