how to retrieve day month and year from Timestamp(long format)

后端 未结 5 1018
再見小時候
再見小時候 2020-12-15 17:38

I need to retrieve day year and month from a timestamp object as long numbers:

public long getTimeStampDay()
    {

            String iDate = new SimpleDate         


        
5条回答
  •  囚心锁ツ
    2020-12-15 18:29

    This method returns the day, date, year and time:

    Timestamp timestamp = new Timestamp(System.currentTimeMillis());
    

提交回复
热议问题