This content has been marked as final. Show 3 replies
you can use SimpleDateFormatter. Look up the API or Go to javaalmanac.com and search for code snippets.
please help me with a code snippetFigure it out and post back your reply so others reading will have help later on.
i have looked up the API but i'm getting errors; please help with a code snippet
SimpleDateFormat formatter = new SimpleDateFormat("yy/MM/dd"); Date currentTime_1 = new Date(); // Date for 13 Nov 2001S // String dateString = "13/11/2001"; // Parse the string into a Date. Date myDate = formatter.parse(loan_date); // If you want to format the Date -> String output... SimpleDateFormat formatter2 = new SimpleDateFormat("dd-MON-yy"); String myDateString = formatter.format(myDate); // Result is "Tue, 13 Nov 2001"
alright bud. Dont have a snippet ready.
Here are the 2 links which have what you want. figure out and post back what you did.