Is there any built-in support for that? And if not, is there any consensus about handling such dates?
Links to owncoded solutions, or fragments of it, are very welcome.
Is there any built-in support for that? And if not, is there any consensus about handling such dates?
Links to owncoded solutions, or fragments of it, are very welcome.
If you're referring the handling of DateTime values < DateTime.MinValue, then I think the only "consensus" is to not use System.DateTime to try to represent them.
Any consensus would likely exist only within a community that does work with such dates. What is the area in which you are working? Astronomy?
Whatever the area of interest, there are likely to be others who have experienced this same problem. I'd do some research first, especially if your dates will ever need to interoperate with other software in this same area of interest. Even if you have to code your own, you can at least become aware of the issues that others have had in coding their own.
There is no built in support for dates in this range so you will have to code your own.
Here is an example http://blog.cogworks.co.uk/2009/03/representing-large-ad-and-bc-dates-in-c.html