Menu
Question Index
...

Write a program to identify the week day and date of the given date and time.

Input (String) Output (Date)
'2013/06/19 00:00:00' 'Wed Jun 19 00:00:00 PDT 2013'
'2013/01/26 11:25:00' 'Sat Jan 26 11:25:00 PST 2013'
'2013/1/15 10:15:22' 'Tue Jan 15 10:15:22 PST 2013'
'2044/11/14 01:15:59' 'Mon Nov 14 01:15:59 PST 2044'
'2001/7/7 3:59:59' 'Sat Jul 07 03:59:59 PDT 2001'


import java.util.*;
import java.text.*;
class IdentifyTheDayAndTimeOfTheDate2
{
    public static void main(String s[])
    {
        System.out.println("Output of '2013/01/26 11:25:45' is : " + dayOfDateAndTime("2013/01/26 11:25:45"));

    }


    public static Date dayOfDateAndTime(String date) {
    Date result = null;
    return result;
    }

}

Doubts

Problems

Topic: Locale Class In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App