Solved

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

Posted on 2003-11-26
7
284 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
[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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 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