Short and quick tutorial to find current date and time in Java using DateFormat and SimpleDateFormat class and converting them into different timezones like GMT, UTC or any local timezone with detailed code example and explanation.
Its common requirement of a java web application to convert string to date , you can get string from xml document or any file or from database
but when you want to show that string in front of user you want to show them as date and for that you need to format in a particular dateformat.
This article explains some best ways to convert string to date and date to string on vearious date format e.g. ddMMyyyy or dd-MM-yyyy with simple examples.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials.
Mind lending a hand?