Android - How to get just the date from date time ? : I have data Json that contains birth date, when i display it it contains the time also. Please help me how can i just display the date without the time...?

this is my code to get the birth date

.....

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    userBirthDate.setText(response.body().getData().getBirth_of_date().toString());

<!-- end snippet -->

.....