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
Solved

How to set the system date and time on a Pocket PC within eVB program?

Posted on 2003-11-26
7
282 Views
Last Modified: 2010-05-01
I want to be able to program the system date and time within my eVB program, as opposed to shelling out to settings/clock. I don't care about the interface, just the commands to set the system date/time and what the variable format needs to be in. It seems like a simple task, but I couldn't find any reference to do this. Any ideas?
0
Comment
Question by:patricksd
  • 3
  • 2
  • 2
7 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9827239
you an use the Date function, to set the Date:

Date = #12/30/2001"   set the Date to Dec 30, 2001

You can also do this with Now

Now = #12/30/2001 12:00:00PM#

0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9827242
oops, minor typo:


Date = #12/30/2001# '  set the Date to Dec 30, 2001
0
 

Author Comment

by:patricksd
ID: 9827425
I tried that already thinking it was so obvious, but I get an - Illegal assignment: 'Date' error. What am I doing wrong?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9828808
maybe that was removed as a potentail 'loophole' in eVB.  Worth a shot.

AW

0
 
LVL 2

Expert Comment

by:nschulz777
ID: 10070151
Hello Patrick, I'm looking for the same solution, have you found one yet?
0
 

Author Comment

by:patricksd
ID: 10165575
No solution, as I am guessing it can't be done.
0
 
LVL 2

Accepted Solution

by:
nschulz777 earned 500 total points
ID: 10166139
I haven't tried it but found this:
http://www.commedia.pt/ce/udts1.html
Norm
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

792 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