Here you can find the source of localDateTimeOf(final String value)
Parameter | Description |
---|---|
value | the value |
public static LocalDateTime localDateTimeOf(final String value)
//package com.java2s; //License from project: Apache License import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class Main { /**/*w w w . j a v a 2s.com*/ * Parse the given value as a local datetime. * * @param value the value * @return the date/time instance */ public static LocalDateTime localDateTimeOf(final String value) { try { return LocalDateTime.parse(value, DateTimeFormatter.ISO_LOCAL_DATE_TIME); } catch (final Exception e) { return null; } } }