Hi,

I work with compact framework 1.1.
I'd like to set the system's date but I don't know which is API that I need
...
Could you help me please ?

Thanks.

Re: How can I set the system date ? by ctacke/>

ctacke/>
Mon Jul 03 09:07:00 CDT 2006

You have to P/Invoke SetLocalTime or SetSystemTime.

Take a look at the DateTime2 class in the SDF:

http://www.opennetcf.org/library/OpenNETCF.Win32.DateTime2Members.html

-Chris


"Freddyboy" <Freddyboy@discussions.microsoft.com> wrote in message
news:AD0D17F7-721C-47A6-AC91-44CE39EA5751@microsoft.com...
> Hi,
>
> I work with compact framework 1.1.
> I'd like to set the system's date but I don't know which is API that I
> need
> ...
> Could you help me please ?
>
> Thanks.
>
>



Re: How can I set the system date ? by raju

raju
Wed Jul 05 08:59:02 CDT 2006


<ctacke/> wrote:
> You have to P/Invoke SetLocalTime or SetSystemTime.
>
> Take a look at the DateTime2 class in the SDF:
>
> http://www.opennetcf.org/library/OpenNETCF.Win32.DateTime2Members.html
>
> -Chris
>
>
> "Freddyboy" <Freddyboy@discussions.microsoft.com> wrote in message
> news:AD0D17F7-721C-47A6-AC91-44CE39EA5751@microsoft.com...
> > Hi,
> >
> > I work with compact framework 1.1.
> > I'd like to set the system's date but I don't know which is API that I
> > need
> > ...
> > Could you help me please ?
> >
> > Thanks.
> >
> >


Hai,

do you want to set the system date means,

simply assign the today property with your date. ie., like this

today=dtpcontrol.value


it will change the system date also.

Regards,
Raj.