Could life be made easier by saving DateTime values as a long
instead? There always seem to be problems when working with null DateTime values, whether storing or retrieving - null DateTimes, invalid DateTimes, etc. are always a pain to work with.
Would it be advisable to simply work with a long
data type since you can always create a DateTime from the ticks?
Edit:
I work with SqlServer and MySql. SqlDateTime is a .net derivation of DateTime
. There are differences between all 3 platforms of what a valid DateTime is. How do you handle these differences?