String to date sometimes the full date exists sometimes i only get year in java

前端 未结 0 1379
长发绾君心
长发绾君心 2020-12-13 04:02

So am parsing json and sometimes the string I receive which contains the date comes full(dd-mm-yyyy) , and sometimes I only receive yyyy which I dont seem to able to convert

相关标签:
回答
  • 消灭零回复
提交回复
热议问题