Solved

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

Posted on 2003-11-26
7
278 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now