Java Example – Convert Date to String

Convert Date to String in Java

In this Java Example we will see How to convert Date to String or how to convert java.util.Date to String in Java.


Partner Sites

  • MD

    You used the wrong format parameter -> mm instead of MM and now your current month is 59 instead of 12

  • Blenda Guedes

    The ‘mm’ must to be upper case (“MM”), or it will be interpreted as minutes.
    So instande of “yyyy-mm-dd hh:mm:ss” do “yyyy-MM-dd hh:mm:ss”

    • Walkercat

      YOU ARE MY HERO! thank you xD