Link to home
Start Free TrialLog in
Avatar of sasllc
sasllcFlag for United States of America

asked on

How to get date and time for mobile devices?

Our customers use Motorola 9090 scanners.  For years their scanners' internal date and time would automatically be updated every time they docked the scanner and connected via Activesync, as long as they had a partnership established. But now many are using Win 7, where Activesync is no longer allowed, and to my knowledge, Windows Mobile Device Center does not offer this nice feature that Activesync provided.

In addition, many customers are doing their data transfers wirelessly now, connected to their PC or small network, meaning that they never have reason to dock the scanner anyway.

So now I'm wondering if there is a way, via our vb app, or some other way, to access the current date and time so I can update the scanner's clock.  When the scanners do wireless transfers, they are connecting to a computer in the office, and also can connect to websites, making me wonder if there is some way to get current date and time.

Any ideas on how this can be done?  TIA
ASKER CERTIFIED SOLUTION
Avatar of Mikal613
Mikal613
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sasllc

ASKER

By any chance is there a file maintained by Windows on a typical PC that contains the current date?  Obviously the Windows operating system knows the date at all times, but I'm wondering if it that information is also stored in a file somewhere.

If so, this would be an easy solution for me, since our scanner app is already set up to wirelessly read files from the PC or server.
No but you can make a web service that requests the time from the Server.

Server: Hosts the webservice method called GetServerTime() basically it returns the DateTime.Now() value.  

Client aka the device makes the call GetServerTime() and uses the data.
Avatar of sasllc

ASKER

Unfortunately, I am not at all familiar with doing a web service call like this, so I wouldn't know how or where to begin.  If there is a good, preferably simple example you can send or point me to, that would be very helpful.