Skip to main content
added 22 characters in body
Source Link
Adi
  • 400
  • 8
  • 25

How to convert time stampTimestamp into dateDate format in java

I have a time stamp like this(form a json response) :

"/Date(1479974400000-0800)/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

How to convert this time stampTimestamp into dateDate format?

How to convert time stamp into date in java

I have a time stamp like this :

"/Date(1479974400000-0800)/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

How to convert this time stamp into date?

How to convert Timestamp into Date format in java

I have a time stamp like this(form a json response) :

"/Date(1479974400000-0800)/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

How to convert this Timestamp into Date format?

deleted 10 characters in body
Source Link
Adi
  • 400
  • 8
  • 25

I have a time stamp like this :

"\/Date(1479974400000-0800)\/"

"/Date(1479974400000-0800)/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

How to convert this time stamp into date?

I have a time stamp like this :

"\/Date(1479974400000-0800)\/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

How to convert this time stamp into date?

I have a time stamp like this :

"/Date(1479974400000-0800)/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

How to convert this time stamp into date?

deleted 27 characters in body
Source Link
Adi
  • 400
  • 8
  • 25

I have a time stamp like this :

"\/Date(1479974400000-0800)\/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

But it doesn't work.

How to convert this time stamp into date?

I have a time stamp like this :

"\/Date(1479974400000-0800)\/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

But it doesn't work.

How to convert this time stamp into date?

I have a time stamp like this :

"\/Date(1479974400000-0800)\/"

I'm trying this function to convert time stamp into date:

public String getDate() {
    Calendar cal = Calendar.getInstance(Locale.ENGLISH);
    cal.setTimeInMillis(time);
    String date = DateFormat.format("dd-MM-yyyy", cal).toString();
    return date;
}

How to convert this time stamp into date?

deleted 47 characters in body
Source Link
Loading
Source Link
Adi
  • 400
  • 8
  • 25
Loading