You are viewing a single comment's thread. Return to all comments →
it returns a string.
there are two ways to return this date string, either you use
return String.valueOf(localDate.getDayOfWeek().toString()); or return localDate.getDayOfWeek().name
Both return string.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
it returns a string.
there are two ways to return this date string, either you use
return String.valueOf(localDate.getDayOfWeek().toString()); or return localDate.getDayOfWeek().name
Both return string.