Java tutorial
//package com.java2s; import android.os.Bundle; import java.util.Date; public class Main { public static void putDate(Bundle bundle, String key, Date date) { bundle.putLong(key, date.getTime()); } }