Java Instant to Date toDate(Instant instant)

Here you can find the source of toDate(Instant instant)

Description

to Date

License

Apache License

Declaration

public static Date toDate(Instant instant) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.time.Instant;

import java.util.Date;

public class Main {
    public static Date toDate(Instant instant) {
        return new Date(instant.toEpochMilli());
    }/*from  w w w. j  av  a2 s. c om*/
}

Related

  1. toDate(Instant moment)