get current date and save it variable in java
===

how is get current date in java and that date is save it using variable.i have developed only get the data.but i can't creat variable in dis part.so please explain me how is create variable and how is save date in dis variable.please explain me.
dis is my code:

    package com.xcart;
 
    import java.util.Date;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
     import java.util.Calendar;
 
 
      public class GetCurrentDateTime {
       public static void main(String[] args) {
 
	   DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
	   //get current date time with Date()
	   Date date = new Date();
	   System.out.println(dateFormat.format(date));
 
	
 
       }
        }.please help me
