-1

I have some data in Excel and I have to import in the database using Java but my date is automatically converted into a number but I have to save it as a date.

Basil Bourque
  • 262,936
  • 84
  • 758
  • 1,028
Devraj verma
  • 405
  • 3
  • 14
  • 1
    Search Stack Overflow before posting. If not yet covered, post details. Link to documentation. Give examples of inputs and outputs. – Basil Bourque Aug 20 '18 at 15:40
  • @BasilBourque i had already searched on stack overflow but i din't get proper answer so if you know kindly provide me solution for it. – Devraj verma Aug 21 '18 at 05:20

1 Answers1

1

So the date that you are getting in java is essentially long timeInMillis, just convert that long value to date, refer Convert millisecond String to Date in Java

Niranjan Kumar
  • 1,348
  • 11
  • 27