String date = new SimpleDateFormat("dd-MM-yyyy").format(new Date());
More Related Contents:
- Change date format in a Java string
- Java string to date conversion
- Convert java.util.Date to String
- Parse String to Date with Different Format in Java
- Java, Calculate the number of days between two dates [duplicate]
- how to convert java string to Date object [duplicate]
- How can I calculate a time span in Java and format the output?
- How to format a Java string with leading zero?
- Extract time from date String
- formatting a string to a currency format in jasper report
- Sprintf equivalent in Java
- How can I set date and time formatting in Java that respects the user’s OS settings
- Print out elements from an Array with a Comma between the elements
- Generate fixed length Strings filled with whitespaces
- How can I remove punctuation from input text in Java?
- How to compare two string dates in Java?
- How to use String.format() in Java? [duplicate]
- Convert Java Date into XML Date Format (and vice versa)
- Parse a String to Date in Java
- Java printf using variable field size?
- Write a function that will sort a string array using Java
- Calculating the difference between two Java date instances
- Difference between java HH:mm and hh:mm on SimpleDateFormat
- How to obtain the last path segment of a URI
- Parsing string to local date doesn’t use desired century
- Why does String.hashCode() in Java have many conflicts? [closed]
- SimpleDateFormat.parse() ignores the number of characters in pattern
- Validating IPv4 string in Java
- Difference between String trim() and strip() methods in Java 11
- Retrieve current week’s Monday’s date