>since we got a string called "ltNow"
>now how to set the sys date time with "ltNow" ?
>
>
>lcTemp = forcepath(sys(2015)+'.tmp', 'd:\aaa')
>Strtofile('x',m.lcTemp)
>Adir(arrFile,m.lcTemp)
>Erase (m.lcTemp)
>ltNow = (Ctot(Transform(Dtoc(arrFile[3],1),'@R ^9999/99/99')+' '+arrFile[4]))
What is the point of checking date and time on the local computer? Did you want to syncronize with a different computer?
You may want to check
Re: System date Thread #
1134668 Message #
1134691http://msdn2.microsoft.com/en-us/library/ms724942.aspx
If it's not broken, fix it until it is.
My Blog