TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Venkatesh K H
NA
116
33.2k
How to convert date formt from MM/dd/yyyy to yyyy/MM/dd ?
May 17 2017 3:25 AM
I am sending MM/dd/yyyy format from frontend to the mysql workbench database but its not storing the date as MM/dd/yyyy format. then how to convert this to yyyy/MM/dd in jsp.
I have tried this code but getting error please reply soon its urgent.
<%String start_date = "MAY-08-2017";
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
Date d = formatter.parse(start_date);
System.out.println(d);
System.out.println(formatter.format(d));%>
Reply
Answers (
2
)
Stop JavaScript code running when C# validation failed
How to write two action for one form in jsp?