/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;
import java.time.format.* ;
import java.time.temporal.* ;
import java.time.chrono.* ;
import java.time.zone.* ;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		LocalDate ld = LocalDate.of( 2021 , Month.JANUARY , 23 ) ;
		LocalTime lt = LocalTime.of( 12 , 0 ) ;
		ZoneId z = ZoneId.of( "America/Montreal" ) ;
		ZonedDateTime zdt = ZonedDateTime.of( ld , lt , z ) ;
		GregorianCalendar myGregCal = GregorianCalendar.from( zdt ) ;
		
		// Go the other direction.
		ZonedDateTime zdt2 = myGregCal.toZonedDateTime() ;
		
		// Generate text.
		Locale locale = Locale.UK ; 
		DateTimeFormatter f = DateTimeFormatter.ofLocalizedDate( FormatStyle.MEDIUM ).withLocale( locale ) ;
		String output = zdt2.toLocalDate().format( f ) ;
		
		System.out.println( "output: " + output ) ;
		
	}
}