public static Calendar parseTimestamp(String timestamp) throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy", Locale.US); Date d = sdf.parse(timestamp); Calendar cal = Calendar.getInstance(); cal.setTime(d); return cal; }
public static void main (String a[]) throws Exception{ String timestampToParse = "02-Dec-2008"; System.out.println("Date is : " + timestampToParse); Calendar cal = parseTimestamp(timestampToParse); cal.add(Calendar.DATE, 90); Date d = new Date(cal.getTime().getTime()); SimpleDateFormat formatter = new SimpleDateFormat("EEEE,dd-MMM-yyyy"); String formattedDate = formatter.format(d); System.out.println("After 90 Days date is ==>"+formattedDate); } }
Thanks
Related Pages:
core java programming question corejavaprogramming question How to write a java program to list the customer names arrived to a restuarant on a particular date in alphabetical order with arguments as 1 filename yymmdd cust
Hi Friend,
Try
core Java programming coreJava programming Hi,
Thanks for ur previous answers.... I need some of these answers also...
Bharathi Indian Cuisine is a leading Indian...;TIME:HHMMSS;ITEM1:QTY:PRICE;ITEM2:PRICE2;]
They are looking for a Java Program
Core Java Programming - Java Beginners CoreJava Programming Write a program in Java which initializes the starting date as your birthday and displays the date 90 days later in the format day name, month name, day, year Hi friend,
Code to solve
Core Java Programming - Java Beginners CoreJava Programming Write a program in Java which generates a random number between 0 and 1. If the number generated is less than 0.5 then the program must print ?The Value is less than 0.5? and if the number generated
Core Java - Java Beginners Core Java What is Java? I am looking for CoreJava Training Hi friendThe CoreJava Technologies and application programming interface...). They are used in all classes of Javaprogramming, from desktop applications to Java EE
core
core where an multythread using
Please go through the following link:
Java Multithreading
core java - Java Beginners core java When we will use marker interface in our application? Hi friend,
Marker Interface :
In java language programming...://www.roseindia.net/java/master-java/interface.shtml
Thanks
Core Java - Java Beginners Core Java How can we explain about an object to an interviewer ... programming language. Class itself does nothing but the real functionality... to :
http://www.roseindia.net/java/master-java/java-object-oriented
core java - Java Beginners core java 1. What are the Advantages of Java?
2. What are the Differences between c,c++ & java?
3. Where we need to Write Java Programs?
4... programming language but c/c++ is not.
2)Java is platform independent but C
Core Java Training Topics
of programming and working
knowledge of computer.
CoreJava...
CoreJava Training Topics
CoreJava Training Course
Objective
To teach 
Core Java Topics CoreJava Topics
Following are the topics, which are covered under CoreJava. In the roseindia website for corejava, programmer will find completed details of every corejava topic and simple example of corejava that will help you learn
core java - Java Interview Questions core java What are transient variables in java? Give some... relevant to a compiler in javaprogramming language likewise the transient... defined in the javaprogramming language. Keywords are basically reserved words
core java core java how to display characters stored in array in corejava
Java Programming
://www.roseindia.net/tutorial/java/core/bankAccountApplication.html
thnk...Java Programming Assume that bank maintains two kinds of accounts...://www.roseindia.net/answers/viewqa/Java-Beginners/27008-q-in-java.html
core java - Java Interview Questions corejava - Use of polymorphism in object oriented programming Hi all, I am digging for an example of polymorphism in object orient programming... programming ? using Overloading and Overriding ConceptPolymorphismIt is a basic feature
Core Java Doubts - Java Beginners CoreJava Doubts 1)How to swap two numbers suppose a=5 b=10; without...://www.roseindia.net/help/java/c/comparable-interface.shtml
http://www.roseindia.net... and interface, visit the following links:
http://www.roseindia.net/java/language
core java core java Hi,
can any one expain me serialization,Deseralization and exterenalization in corejava
core java core java Hi,
can any one exain me the concept of static and dynamic loading in corejava
Sitemap Core Java Tutorial Section
|
Ask Programming Questions and Discuss your Problems
CoreJava...
Map | Business Software
Services India
Java Tutorial Section
CoreJava... |
Java Swing
Tutorials | Java Servlet Tutorials |
J2EE Tutorials
CoreJava
core java core java surch the word in the given file
CORE JAVA CORE JAVA What is called Aggregation and Composition
core java core java how can we justify java technology is robust
Core Java Interview questions and answers CoreJava Interview questions and answers
 ....
So, we have tried to create most frequently asked CoreJava Interview Questions
and answers in one place.
These CoreJava Interview Questions are supported
core java core java what is the use of iterator(hase next
core java core java please give me following output
core java core java write a java program to view product details from product table
Core Java Core Java How to execute cmd command through java??
Give Code of them
core java core java its compulsory to save file name and class name is same in java
CORE JAVA CORE JAVA What is Garbage collection in java? What is the role of a developer for garbage collection
core java core java In java primitive variables will get its default value automatically after declaration. Then why it is mandatory to initialize a variable before using
Core Java Core Java Please write a Java Program to design login form and store the values in file & validate and display the MainForm
Core Java Core Java Hi,
Can any one please share the code for Binary search in java without using builtin function
core java core java Hello sir,What is logic behinde the corejava programms,How may programmas are there,for example,sorting of two numbers,grade of the student details,fibonice serice,paldroma,incremting of the program,asscedding
core java core java Hello sir,What is logic behinde the corejava programms,How may programmas are there,for example,sorting of two numbers,grade of the student details,fibonice serice,paldroma,incremting of the program,asscedding
Core Java Core Java What is the significance of static synchronized method?
Why do we have the method declared as static synchronized
core java core java how to compare every character in one string with every character in other string
core java core java what is the max size of array?
You can declare up to maximum of 2147483647
Core Java Core Java Write a Program to add given number of days to the current system date and display the same
Core Java Core Java have to find the prime numbers which is less than the current prime numbers using loops
core java core java can i use native keyword with abstract method ? if yes explain and if no please explain
core java core java Hi,
Can any one please share a code to print the below:
1
121
12321
1234321
CORE JAVA CORE JAVA Tell me some Scenarios why you go for Abstract Class and Interface
Core Java Core Java How to load class dynamically in java ?
To load class dynamically you can use Class class method
Class.forName("abc.xyz.MyClass");
This method load the given class at run time
Core Java Core Java Hi,
can any one please tell me the uses of return type,"Super" and "this" calling statement in Java??
why do we required this,super calling statement??
why return type is required
Core Java Core Java Hi,
Can any one please expain me why derived data types are required in java as we have primitive data types with us
Core Java Core Java Hi,
Can any one please expain me why derived data types are required in java as we have primitive data types with us