Click here to watch on Youtube:
https://www.youtube.com/watch?v=alt14z-0Wug&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge:
GregorianCalendarDemo.java
Output
Refer:
https://docs.oracle.com/javase/8/docs/api/index.html?java/util/GregorianCalendar.html
Click the below link to download the code:
https://sites.google.com/site/ramj2eev2/java_basics/GregorianCalendarDemo_Intro.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava_2018/GregorianCalendarDemo_Intro
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/9517738654fc960a41fe7bd750435376eb3e2064/BasicJava_2018/GregorianCalendarDemo_Intro/?at=master
See also:
All JavaEE Videos Playlist
All JavaEE Videos
All JAVA EE Links
Spring Tutorial
Servlets Tutorial
All Design Patterns Links
JDBC Tutorial
Java Collection Framework Tutorial
JAVA Tutorial
Kids Tutorial
Cooking Tutorial
https://www.youtube.com/watch?v=alt14z-0Wug&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge:
Java.util.GregorianCalendar class Introduction | Java Date and Time | Date and Time in java |
GregorianCalendarDemo.java
import java.util.Date;
import java.util.GregorianCalendar;
public class GregorianCalendarDemo
{
public static void main(String[] args)
{
GregorianCalendar cal = new GregorianCalendar();
/*
* Returns a Date object representing this Calendar's time
* value
*/
Date date = cal.getTime();
System.out.println(date);
}
}
import java.util.GregorianCalendar;
public class GregorianCalendarDemo
{
public static void main(String[] args)
{
GregorianCalendar cal = new GregorianCalendar();
/*
* Returns a Date object representing this Calendar's time
* value
*/
Date date = cal.getTime();
System.out.println(date);
}
}
Output
Sat Jul 21 09:21:00 IST 2018
Refer:
https://docs.oracle.com/javase/8/docs/api/index.html?java/util/GregorianCalendar.html
Click the below link to download the code:
https://sites.google.com/site/ramj2eev2/java_basics/GregorianCalendarDemo_Intro.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava_2018/GregorianCalendarDemo_Intro
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/9517738654fc960a41fe7bd750435376eb3e2064/BasicJava_2018/GregorianCalendarDemo_Intro/?at=master
See also:
No comments:
Post a Comment