/* Returns: TRUE if the date is a valid one  */
gboolean g_date_valid_dmy(GDateDay d, GDateMonth m, GDateYear y)
/* Returns: TRUE if the date is a valid one  */
gboolean g_date_valid_dmy(GDateDay d, GDateMonth m, GDateYear y)
{
  return ( (m > G_DATE_BAD_MONTH) &&
           (m < 13)               && 
           (d > G_DATE_BAD_DAY)   && 
           (y > G_DATE_BAD_YEAR)  &&
           (d <=  (g_date_is_leap_year (y) ? 
		   days_in_months[1][m] : days_in_months[0][m])) );
}