Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty dates displayed as Dec.30 1899 with {0:MM/dd/yyyy}
Message
De
21/08/2005 10:04:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
01042554
Message ID:
01042557
Vues:
18
>column.DataFormatString = "{0:MM/dd/yyyy}"
>
>With this settings empty dates are displayed as 12/30/1899.
>The data is retrieved from DBF table through OLEDB connection.
>
>What should I change?
>Thanks!

This problem happens to many people; it so happens that "empty dates" is not a common concept in database systems. In this case, I think ODBC doesn't support it, or at least, not as you expect it.

I suggest you use NULL dates instead.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform