Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Java Date Conversion

In java date conversion, two packages are used .They are java.util.* and java.text.*. The java.util.* package provides three subclasses that are named as java.util.Date, java.util.Time and java.util.Timestamp class.

Tutorial Details:

In java date conversion, two packages are used .They are java.util.* and java.text.*. The java.util.* package provides three subclasses that are named as java.util.Date, java.util.Time and java.util.Timestamp class.

The java.util.Date class represents a specific instant in time. The time is with millisecond precision. In JDK 1.1, the java.util.Date class has two additional functions. It allows the interpretation of date in year, month, day, hour, minute, and second values. It also allows the formatting and parsing of date strings. The Calendar class of JDK 1.1 is used to convert between dates and time fields and the DateFormat class is used to format and parse date strings. The Date class supports the universal time (UTC). That means 1 day = 24 × 60 × 60 = 86400 seconds in all cases.


 

Rate Tutorial:
http://www.roseindia.net/java/java-conversion/ConversionOfDate.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Java Date Conversion

View Tutorial:
Java Date Conversion

Related Tutorials:

Java Tip 74: Build dynamically extensible frameworks - JavaWorld
Java Tip 74: Build dynamically extensible frameworks - JavaWorld
 
Validation with Java and XML Schema, Part 2 - JavaWorld October 2000
Validation with Java and XML Schema, Part 2 - JavaWorld October 2000
 
Reveal the magic behind subtype polymorphism - JavaWorld April 2001
Reveal the magic behind subtype polymorphism - JavaWorld April 2001
 
Working in Java time
Working in Java time
 
XSLT blooms with Java
XSLT blooms with Java
 
Nice widget
Nice widget
 
Dictionary and Thesaurus API for Java
What is the Dictionary and Thesaurus API for JavaTM? The Dictionary and Thesaurus API for Java is a standard-based class library for accessing a dictionary and thesaurus using Java. It provides programming access to wordbook data from the Java programm
 
Related Values Processing Framework (RVPF)
Related Values Processing Framework (RVPF) Overview The Related Values Processing Framework is being developed to help the integration of Process Control Data Historian Systems. This is done by providing support for the conversion, computation and di
 
XStream
XStream is a simple library to serialize objects to XML and back again.
 
LDAPXML: An LDAP to XML Converter
LDAPXML: An LDAP to XML Converter LDAPXML is a set of java classes that allow you to access LDAP entries as custom defined XML. It allows you to map the various LDAP objectClasses and attributes to XML namespaces, attributes, elements etc. If you're lo
 
CalendarComponent
Java Calendar Component V 1.0
 
ConvertEncoding v1.0 - file encoding conversion
ConvertEncoding v1.0 - file encoding conversion
 
Java Calendar Component
Java date picker component, ready to use in your Swing applications featuring.
 
JTimepiece
JTimepiece is the advanced library for working with dates and times in Java. Many easy-to-use methods in this API make it easy for any developer, from beginner to expert, to use JTimepiece.
 
Overview of Servlets and JSP
Servlets are Java technology's answer to CGI programming. They are programs that run on a Web server and build Web pages. Building Web pages on the fly is useful (and commonly done) for a number of reasons.
 
Servlets and JavaServer Pages (JSP) : A Tutorial
An excellent tutorial on JSP and Servlets.
 
JavaServer Faces Technology
JavaServer Faces technology is a server-side user interface component framework for Java technology-based Web applications.
 
Java Technology Fundamentals
Learn how to use variable arguments lists, the new JConsole utility to monitor applications, and discover ways to learn what you need to know to get Sun certified.
 
JSP date example
JSP date example JSP Date Example Till now you learned about the JSP syntax, now I will show you how to create a simple dynamic JSP page that prints the current date and time. So the following code accomplish this: <%@page contentType="text/html"
 
Welcome! to the News letter archive
Welcome! to the News letter archive News Letter Archive Date Subject Dec-29-2001 Adding slash " \ " character before quote " ' " in a query
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.