I have a date (05/15/2013) which is from a HTML Datepicker. I want to save this value in a mySQL column, which is the type of DATETIME
. Format should be yyyy-MM-dd
.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
You can use
java.text.SimpleDateFormat
class, e.g.You can find more on official Oracle tutorial page.
You could use joda time with date formatters like this:
you can use this
STR_TO_DATE
You can specify the format as per your requirement
You can try this
or you can use regex