Correcting my Date Output from SimpleDateFormat

后端 未结 2 1577
说谎
说谎 2021-01-27 03:42

I am having a problem: Trying to use SimpleDateFormat with user input...

public static void main(String[] args) {
try {
SimpleDateFormat sdf = new SimpleDateForm         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-27 03:58

    You should use small y - MM/dd/yyyy.

    This link should be your friend when dealing with date format problems.

提交回复
热议问题