Convert 'Today' as double
How do I convert today's date as a double type value?
weekOf = ToDouble(DateTime.Today);
That is a very, very small frational number.
Re: Convert 'Today' as double
Alan T wrote:
> How do I convert today's date as a double type value?
> I tried:
> double weekOf;
> weekOf = ToDouble(DateTime.Today);
This can't be what you tried because it wouldn't have compiled. And if
you had tried
weekOf = Convert.ToDouble(DateTime.Today)
you would have gotten an InvalidCastException, according to
> It displayed:
> That is a very, very small frational number.
Even if you had gotten a result from whatever it is you tried, why would
you expect it to have any particular value, or magnitude of value, given
that there is no relationship between doubles and DateTimes?
|All times are GMT. The time now is 10:21 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.