I've just tried to verify this and I get the correct result, unlike the OP.
Here's my code:
using System;
static class Program
{
[MTAThread]
static void Main()
{
DateTime dt = new DateTime(2007, 03, 03, 07, 30, 00);
long ticks = dt.Ticks;
DateTime clone = new DateTime(ticks);
string parsed = clone.ToString();
} // Set BP here so that you can inspect 'parsed'
}
--
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.
Managed Code in the Embedded World
http://www.opennetcf.com/
http://www.smartdeviceframework.com/
"jeff" <(E-Mail Removed)> wrote in message
news:A7692322-3E88-4186-BF8D-(E-Mail Removed)...
> Hi Guys,
>
> I have create a Date Object, with my specified date.
> let me see:
>
> DateTime dt = new DateTime(2007,03,03,07,30,00);
> and I get the long ticks = dt.Ticks;
> however when I create another DateTime instance by using that ticks,
> DateTime clone = new DateTime(ticks);
>
> It only return me year,month,day, the hour has been changed 12,and min is
> 00,
>
> what is the issue?
>
> Thanks