Split date/time strings

后端 未结 7 1863
不思量自难忘°
不思量自难忘° 2020-12-18 03:32

I have a ReST service which downloads information about events in a persons calendar...

When it returns the date and time, it returns them as a string

e.g. d

7条回答
  •  旧巷少年郎
    2020-12-18 03:56

    You can see an example of split method here : How to split a string in Java

    Then simply use the array for your parameter eg: array[0] for year and etc..

提交回复
热议问题