Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Parameter month I Report
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


hendra
Parameter month I Report
1 Answer(s)      5 years and 11 months ago
Posted in : Java Beginners



Advertisement
View Answers

December 18, 2008 at 5:16 AM


Hi friend,

Code to help in solving the problem :


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

public class DateFormat {

public static void main(String args[]) {

String s;
Format formatter;
Date date = new Date();

// 01/09/02
formatter = new SimpleDateFormat("MM/dd/yy");
s = formatter.format(date);
System.out.println(s);

// 01/09/02
formatter = new SimpleDateFormat("dd/MM/yy");
s = formatter.format(date);
System.out.println(s);

// 29-Jan-02
formatter = new SimpleDateFormat("dd-MMM-yy");
s = formatter.format(date);
System.out.println(s);

// 2002.01.29.08.36.33
formatter = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss");
s = formatter.format(date);
System.out.println(s);

// Tue, 09 Jan 2002 22:14:02 -0500
formatter = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss Z");
s = formatter.format(date);
System.out.println(s);

formatter = new SimpleDateFormat("EEEE, dd MMMM yyyy HH:mm:ss zzzz");
s = formatter.format(date);
System.out.println(s);
}
}

Thanks


Related Tutorials/Questions & Answers:
Parameter month I Report - Java Beginners
Parameter month I Report  hy, I want to ask about how to make parameter in I Report, parameter is month from date. How to view data from i report use like "12/2008". Thank's  Hi friend, Plz give details
Parameter month I Report - Java Beginners
Parameter month I Report  ok, my problem now is in Report in java with I report. I want to give parameter month/year to my design in I Report... to I Report design. Thank's   Hi friend, Code to help in solving
Advertisements
pdf from i report
pdf from i report  I have a problem again with my report, i use I Report to make pdf file. but when the application running in java, pdf can't view. but in rtf format data can view. or can icon save like this to be dissapear
Struts - Jboss - I-Report - Struts
Struts - Jboss - I-Report  Hi i am a beginner in Java programming and in my application i wanted to generate a report (based on database) using Struts, Jboss , I Report
report
report  how to take input from number of classes like order, bill,customer to another class say report to make a report on all these things
Ask make graph from i report and view to java Language Programming
Ask make graph from i report and view to java Language Programming  Dear sir, Please help me, i want to make a graph from mysql to i report and view to java. Please help me, give me example source code please. thank you
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap   i want to create invoice report .. help out asap
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap   i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
Report Genrating
Report Genrating  How can i genrate the report on java by using jdbc records in our application
report generation
report generation  i need to show the report between two dates in jsp is it possible
Report - JDBC
JSP Page show report on specific time interval  I want to display the report at the specific time from the data base in my JSP page
generate report
generate report  hai, im learning php so pls help me .... what is a coding for generate report by month using php... wat is a code php for create calender and listing from database... pls someone help me
generate report
generate report  hai, im learning php so pls help me .... what is a coding for generate report by month using php... wat is a code php for create calender and listing from database... pls someone help me
dynamic report
dynamic report  i need complete code for generating dynamic report in jsp
jasper report
jasper report  Sir, I have created report using ireport3 in netbeans but i am not able to show the report in jsp and also want to show the dynamicaly generated reports and aslo show in pdf and excel Please help Thanks
Generating report in java
Generating report in java  How can I generate a report in java
report generation
report generation  hi i need a code to generate reports in bar graph and pie charts.i found these codes in roseindia.in unfortunately its not working................. plz help me
report generation
report generation  hi i need a code to generate reports in bar graph and pie charts.i found these codes in roseindia.in unfortunately its not working................. plz help me
report problem
report problem  I have made a project that displays charts using jfreechart library from the student marks stored in a database. what all can i... such project report,then do soon,..Its urgent.   Please visit the following
report generation
report generation  hi i found some source codes related to barchart and pie chart .when i try to run thise code its showing me the error as :- java.lang.NoSuchMethodError: org.jfree.text.TextBlock.setLineAlignment(Lorg/jfree/ui
Opentap Report
Opentap Report  how to run in build report in oepntaps how to make analytics data base in opentaps
REPORT WITH JTABLE
REPORT WITH JTABLE  i have data in backend(oracle10g,spl+).i want..."); ResultSetMetaData md = rs.getMetaData(); int columns = md.getColumnCount(); for (int i = 1; i <= columns; i++) { columnNames.addElement( md.getColumnName(i) ); } while
to renew leave to next month
to renew leave to next month  i need to make a project where an employee must be able to apply leave only once in a month, and if he doesn't use that leave in that particular month, it must be renewed to the next month so that he
Birt Report
Birt Report  Help with birt reports in myeclipse. I'm getting an exception when trying to display the report. Can u give me the complete procedure and the code as well. The exception is: Cannot open the connection for the driver
crystal report plugin for eclipse
crystal report plugin for eclipse  Hi, I want to know whether unicode based crystal reports can be generated using jsp.?Also I need the crystal report plugin for eclipse . Thanks
Init Parameter
Init Parameter  How set Init Parameter in servlet
J2ee Crystal report integration
J2ee Crystal report integration  Hai Sir, I am familiar with crystal report and vb6 and sql server 2005.Now i want to integrate crystal report with java web application.Right now i am using jsp to create reports.Developer cost
generate report in swing
generate report in swing  generate report in swing
My jasper Report
My jasper Report  I can now retrieve information from my database to my jasper Report, But as soon as i close the Report form, the entire desktop window will also be close. i want your help please
report generation using jsp
report generation using jsp  report generation coding using jsp
report generation - EJB
report generation   how to create the report in java
 

 

 

DMCA.com