import org.biomoby.shared.datatypes.MobyDateTime;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Describe class TestDate here.
 *
 *
 * Created: Sun May 20 22:42:33 2007
 *
 * @author <a href="mailto:martin.senger&#64;gmail.com">Martin Senger</a>
 * @version 1.0
 */
public final class TestDate {

    /**
     * Creates a new <code>TestDate</code> instance.
     *
     */
    private TestDate() {
	
    }


    /**
     * Describe <code>main</code> method here.
     *
     * @param args a <code>String[]</code> value
     */
    public static void main(final String[] args) {

	try {
 	    SimpleDateFormat sdf = new SimpleDateFormat (MobyDateTime.FULL_FORMAT);
	    MobyDateTime mobyDate = new MobyDateTime();
	    String strDate = sdf.format (new Date());
	    System.out.println (strDate);
	    mobyDate.setValue (strDate);
	    System.out.println (mobyDate.getValue());
	} catch (Exception e) {
	    e.printStackTrace();
	}
    }
    
}
