Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is the JASON DATE which I wanted to change in dd/mm/yyyy
/Date(1478344216260)/

What I have tried:

Seeking for a perfect answer thanks in advance
Posted
Updated 9-Oct-17 7:51am

 
Share this answer
 
Not seeing that the date has anything to do with JSON. To convert from milliseconds,
try:
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(1478344216260);

int mYear = calendar.get(Calendar.YEAR);
int mMonth = calendar.get(Calendar.MONTH);
int mDay = calendar.get(Calendar.DAY_OF_MONTH);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900