Index: e-contact-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-editor/e-contact-editor.c,v
retrieving revision 1.175
diff -u -r1.175 e-contact-editor.c
--- e-contact-editor.c  15 Mar 2004 16:30:35 -0000      1.175
+++ e-contact-editor.c  17 Mar 2004 06:38:45 -0000
@@ -3425,8 +3425,11 @@
                                                  &anniversary.day)) {
                                /* g_print ("%d %d %d\n", anniversary.year, anniversary.month, anniversary.day); */
                                e_contact_set (contact, E_CONTACT_ANNIVERSARY, &anniversary);
-                       } else
-                               e_contact_set (contact, E_CONTACT_ANNIVERSARY, NULL);
+                       } else {
+                               if (!e_date_edit_date_is_valid (E_DATE_EDIT (widget)))
+                                               eab_error_dialog (_("Date Validation error"), 13);
+                               e_contact_set (contact, E_CONTACT_BIRTH_DATE, NULL);
+                       }
                }
  
                widget = glade_xml_get_widget(editor->gui, "dateedit-birthday");@@ -3437,8 +3440,11 @@
                                                  &bday.day)) {
                                /* g_print ("%d %d %d\n", bday.year, bday.month, bday.day); */
                                e_contact_set (contact, E_CONTACT_BIRTH_DATE, &bday);
-                       } else
+                       } else {
+                               if (!e_date_edit_date_is_valid (E_DATE_EDIT (widget)))
+                                               eab_error_dialog (_("Date Validation error"), 13);
                                e_contact_set (contact, E_CONTACT_BIRTH_DATE, NULL);
+                       }
                }
  
                widget = glade_xml_get_widget (editor->gui, "image-chooser");


