DATE AND CALENDAR - Java Codes

JComboBox: Date & Time

Description This is a Code which demonstrates how to add Listeners to a ComboBox & shows Date &/or Time according to the System Date & Timings in different formats based on the selection in the ComboBox. Source Code <pre name="code" ...

0 Comments. 2221 views since Aug 21, 2008

Calendar Icon

Description Display one of those standard Calendar Page icons with Weekday,Day & Month. Can be used as an Icon in a JButton. Can include or exclude an updating Clock at the top (invoke constructor with value of true to include). However, it sh ...

1 Comments. 1184 views since Sep 3, 2008

Java:Calendar

Description This code demonstrates the calendar properties of month. Source Code import java.util.*; public class callender { public static void main(String []args) ...

0 Comments. 1102 views since Sep 17, 2008

Display Date, Month & Year

Description It is a programm which deals with a calender object Source Code import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; imp ...

0 Comments. 972 views since Aug 20, 2008

Compare Dates

Description This is the sample code, which compare the two dates. Source Code import java.util.*; import java.text.*; public class ComparetheDates { public static void main(String[] args) throws P ...

0 Comments. 933 views since Aug 6, 2008

Use of Date & Calendar Objects

Description This is used to show by creating a trivial class to show use of Date & Calendar objects Source Code import java.util.* ; import java.text.* ; public class DateUse { /** Typical main method ...

0 Comments. 910 views since Aug 12, 2008

Dates Before 1970 using Gregorian Calendar

Description It shows the dates before 1970 Source Code import java.util.* ; public class DatePrint1 { public static void main(String[] argv) { //+ Calendar c = new GregorianCalendar(1955, 11, ...

0 Comments. 893 views since Aug 12, 2008

Date Slider using Swing

Description To Change the date,month,year using slider Source Code import java.awt.*; import java.awt.event.*; import java.util.*; import java.text.*; import javax.swing.*; import javax.swing.b ...

0 Comments. 881 views since Sep 30, 2008

Date and Calendar Objects

Description This is used to show by creating a trivial class to show use of Date & Calendar objects Source Code import java.util.* ; import java.text.* ; public class DateUse { /** Typical main method ...

0 Comments. 868 views since Aug 13, 2008