Javatpoint Logo
Javatpoint Logo

Java SQL Date toLocalDate() Method

The toLocalDate() method of Java Date class creates a LocalDate instance. It uses the year, month and day from this date object to create an instance.

Syntax

Parameters

NA

Returns

It returns a LocalDate object which represents the same value of the date.

Example 1

Test it Now

Output:

Current LocalDate is = 2018-09-01

Next TopicJava SQL Date





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA