Menu
Question Index
...

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

Input (String) Output (Date)
'2013-June-19 00:00 AM' 'Wed Jun 19 00:00:00 PDT 2013'
'2013-January-26 11:25 PM' 'Sat Jan 26 23:25:00 PST 2013'
'2013-January-15 10:15 AM' 'Tue Jan 15 10:15:00 PST 2013'
'2044-November-14 01:15 PM' 'Mon Nov 14 13:15:00 PST 2044'


import java.util.*;
import java.text.*;
class IdentifyTheDayAndTimeOfTheDate1
{
    public static void main(String s[])
    {
        System.out.println("Output of given date and time is : " + dayOfDateAndTime("2013-January-26 11:25 PM"));

    }


    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