Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to get date and time for mobile devices?

Posted on 2012-04-11
7
Medium Priority
?
346 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:sasllc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 1000 total points
ID: 37833110
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 500 total points
ID: 37835305
0
 
LVL 16

Assisted Solution

by:hjgode
hjgode earned 500 total points
ID: 37838781
Hello

there are several ways to sync the time on windows mobile.

You can run a timesync client agent software like the one I wrote some time ago: http://www.hjgode.de/dev/iLock/index.html#SNTPClient

Or run http://www.pocketpcfreeware.mobi/download-sk-tsync-v1-0-5.html

Using ActiveSync/WMDC automation, you can also run the itsutil psynctime automatically, when a device is docked (with or with GuestOnly or PartnerShip): http://itsme.home.xs4all.nl/projects/xda/tools.html and http://www.hjgode.de/wp/2010/02/26/pc-activesync-can-be-used-to-automate-tasks-on-device-connection/

Another full description on how to install a free sntp client: http://www.ehow.com/how_6717575_configure-windows-mobile-use-ntp.html

regards

Josef
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 3

Author Comment

by:sasllc
ID: 37860298
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.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 37860442
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.
0
 
LVL 3

Author Comment

by:sasllc
ID: 37860496
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.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 37860505
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question