-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
  • 303,325
  • 100
  • 852
  • 1,154
Devraj verma
  • 407
  • 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,438
  • 1
  • 12
  • 29