Java Date to LocalDateTime toLocalDateTime(String date, int time)

Here you can find the source of toLocalDateTime(String date, int time)

Description

to Local Date Time

License

Open Source License

Declaration

public static LocalDateTime toLocalDateTime(String date, int time) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.LocalDateTime;

public class Main {
    public static LocalDateTime toLocalDateTime(String date, int time) {
        String toParse = String.format("%sT%02d:%02d:00", date, time / 100, time % 100);
        return LocalDateTime.parse(toParse);
    }// ww w. ja va2s.c  o m
}

Related

  1. toLocalDateTime(Date date)
  2. toLocalDateTime(Date date)
  3. toLocalDateTime(Date dateTime)
  4. toLocalDateTime(Date utilDate)
  5. toLocalDateTime(long timestamp)
  6. toLocalDateTime(String dateValue, String timeValue)
  7. toLocalDateTime(String string)