@@ -0,0 +1,934 @@
+package org.adaptlab.chpir.android.participanttracker;%0A%0Aimport android.content.Context;%0Aimport android.widget.DatePicker;%0A%0A// Serialize and deserialize a DatePicker in the format Month-Day-Year%0A%0Apublic class SerializableDatePicker extends DatePicker %7B%0A%0A    public SerializableDatePicker(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public String serialize() %7B%0A        return this.getMonth() + %22-%22 + this.getDayOfMonth() + %22-%22 + this.getYear();%0A    %7D%0A    %0A    public void deserialize(String serializedDate) %7B%0A        if (serializedDate.equals(%22%22)) return;%0A        String%5B%5D dateComponents = serializedDate.split(%22-%22);%0A        int month, day, year;%0A        if (dateComponents.length == 3) %7B%0A            month = Integer.parseInt(dateComponents%5B0%5D) - 1;%0A            day = Integer.parseInt(dateComponents%5B1%5D);%0A            year = Integer.parseInt(dateComponents%5B2%5D);%0A            this.updateDate(year, month, day);%0A        %7D%0A    %7D%0A%7D%0A

Add Serializeable DatePicker