LocalDate atStartOfDay(ZoneId zone)
returns a zoned date-time
from this date at the earliest valid time according to the rules in the time-zone.
atStartOfDay
has the following syntax.
public ZonedDateTime atStartOfDay(ZoneId zone)
The following example shows how to use atStartOfDay
.
import java.time.LocalDate; import java.time.ZoneId; //from www.j a v a 2s . com public class Main { public static void main(String[] args) { LocalDate a = LocalDate.of(2014, 6, 30); System.out.println(a.atStartOfDay(ZoneId.systemDefault())); } }
The code above generates the following result.