How to get the day, year, hours, min Individually from date format “yyyy-MM-dd'T'HH:mm:ss.SSSZ”?

后端 未结 4 1971
忘了有多久
忘了有多久 2020-12-15 21:00

I am doing a programme that stores the present time and date in \"yyyy-MM-dd\'T\'HH:mm:ss.SSSZ\" this format. and I am storing it in database as a string. when

4条回答
  •  无人及你
    2020-12-15 21:07

    There are these methods available to get the individual parts of a date

    getDate()
    getMinutes()
    getHours()
    getSeconds()
    getMonth()
    getTime()
    getTimezoneOffset()
    getYear()
    

提交回复
热议问题