How to convert milliseconds to Date in Java - Tutorial example
Do you want to convert milliseconds to Date in Java? Actually java.util.Date is internally specified in milliseconds from epoch. So any date is the number of milliseconds passed since January 1, 1970, 00:00:00 GMT and Date provides constructorwhich can be used to create Date from milliseconds. Knowing the fact that Date is internally maintained in milliseconds allows you to store date in form of milliseconds in Server or in your Classbecause that can be effectively expressed with a long value.
تعليقات
إرسال تعليق