Sajha.com Archives
JAVA languane

   I am just wondering if there's anybody o 07-May-02 mani
     I am just wondering if there's anybody o 07-May-02 mani
       import java.util.Calendar; class Date 08-May-02 cwte
         import java.util.Calendar; class Date 08-May-02 cwte
           I'm sorry....there is a mistake in the f 08-May-02 cwte
             I'm sorry....there is a mistake in the f 08-May-02 cwte
               You dumb-ass.. don't see what the guy is 08-May-02 Visitor
                 You dumb-ass.. don't see what the guy is 08-May-02 Visitor
                   I wrote a javascript to display date... 08-May-02 Visitor
                     I wrote a javascript to display date... 08-May-02 Visitor
                       Thanx man! I appreciate your approach. 08-May-02 Mani
                         Thanx man! I appreciate your approach. 08-May-02 Mani


Username Post
mani Posted on 07-May-02 10:51 AM

I am just wondering if there's anybody out there who could possibly help me out writing JavaScript display message for 'DATE'.
Anybody welcome!
mani Posted on 07-May-02 10:51 AM

I am just wondering if there's anybody out there who could possibly help me out writing JavaScript display message for 'DATE'.
Anybody welcome!
cwte Posted on 08-May-02 01:03 AM

import java.util.Calendar;

class Date {
public static void main(String args[]) {
String months[] = {
"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"};

// Create a date initialized with the
// current date and time in the default
// locale and timezone.
Date calendar = Date.getInstance();

// Display current time and date information.
System.out.print("Date: ");
System.out.print(months[calendar.get(Date.MONTH)]);
System.out.print(" " + calendar.get(Date.DATE) + " ");
System.out.println(calendar.get(Date.YEAR));

}
}

I hope this helps you.
Output will be as follows:
Date: May 5 2002

Enjoy!
cwte Posted on 08-May-02 01:03 AM

import java.util.Calendar;

class Date {
public static void main(String args[]) {
String months[] = {
"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"};

// Create a date initialized with the
// current date and time in the default
// locale and timezone.
Date calendar = Date.getInstance();

// Display current time and date information.
System.out.print("Date: ");
System.out.print(months[calendar.get(Date.MONTH)]);
System.out.print(" " + calendar.get(Date.DATE) + " ");
System.out.println(calendar.get(Date.YEAR));

}
}

I hope this helps you.
Output will be as follows:
Date: May 5 2002

Enjoy!
cwte Posted on 08-May-02 01:06 AM

I'm sorry....there is a mistake in the first one.... this is it.


import java.util.Date;

class Date {
public static void main(String args[]) {
String months[] = {
"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"};

// Create a date initialized with the
// current date and time in the default
// locale and timezone.
Date calendar = Date.getInstance();

// Display current time and date information.
System.out.print("Date: ");
System.out.print(months[calendar.get(Date.MONTH)]);
System.out.print(" " + calendar.get(Date.DATE) + " ");
System.out.print(calendar.get(Date.YEAR));
System.out.println(".");

}
}

I hope this helps you.
Output will be as follows:
Date: May 5 2002.

Enjoy!
cwte Posted on 08-May-02 01:06 AM

I'm sorry....there is a mistake in the first one.... this is it.


import java.util.Date;

class Date {
public static void main(String args[]) {
String months[] = {
"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"};

// Create a date initialized with the
// current date and time in the default
// locale and timezone.
Date calendar = Date.getInstance();

// Display current time and date information.
System.out.print("Date: ");
System.out.print(months[calendar.get(Date.MONTH)]);
System.out.print(" " + calendar.get(Date.DATE) + " ");
System.out.print(calendar.get(Date.YEAR));
System.out.println(".");

}
}

I hope this helps you.
Output will be as follows:
Date: May 5 2002.

Enjoy!
Visitor Posted on 08-May-02 11:04 AM

You dumb-ass.. don't see what the guy is asking for? javascript not java dummy

//
this will display date and all in detail..also dude remove just '//'
Visitor Posted on 08-May-02 11:04 AM

You dumb-ass.. don't see what the guy is asking for? javascript not java dummy

//
this will display date and all in detail..also dude remove just '//'
Visitor Posted on 08-May-02 11:05 AM

I wrote a javascript to display date... apparently this board is not letting javascript code to display sorry dogg...
Visitor Posted on 08-May-02 11:05 AM

I wrote a javascript to display date... apparently this board is not letting javascript code to display sorry dogg...
Mani Posted on 08-May-02 11:28 AM

Thanx man! I appreciate your approach.
I will try it.
Mani Posted on 08-May-02 11:28 AM

Thanx man! I appreciate your approach.
I will try it.