Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null - Blank DateTime value
Message
De
07/06/2006 19:34:45
 
 
À
07/06/2006 19:31:34
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01127723
Message ID:
01127726
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>I am trying to convert some data from a Foxpro table to a sql database. One of the fields is a string time field in Foxpro (09:15) and a datetime field in sql. I am using the DateTime.Parse() command to convert the string values to datetime values. Everything is working fine until I hit a field that is blank. How to I generate a blank, null.... what every the correct word is, value to insert into the sqltable? In Foxpro DTOT({}) would give me a blank datetime variable.

The following returns an empty date:
        ' Return an empty date
        ' expT1 Date
        Public Function GetEmptyDate() As Date
            Return New Date(1899, 12, 30, 0, 0, 0)
        End Function
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform