Explore BrainMass
Share

Explore BrainMass

    program that prints dates and times

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a program that prints dates and times in the following forms:

    GMT-05:00 04/30/04 09:55:09 AM
    GMT-05:00 April 30 2004 09:55:09
    2004-04-30 day-of-the-month:30
    2004-04-30 day-of-the-year:121
    Fri Apr 30 09:55:09 GMT-05:00 2004

    © BrainMass Inc. brainmass.com October 9, 2019, 7:46 pm ad1c9bdddf
    https://brainmass.com/computer-science/java/program-that-prints-dates-and-times-128723

    Solution Preview

    Please see the attached file.

    // DateTimeTest.java

    import java.text.*;
    import java.util.Date;

    public class DateTimeTest {
    public static void main(String[] args) {
    Date date=new ...

    Solution Summary

    Write a program that prints dates and times.

    $2.19