Solved

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

Posted on 2003-11-26
7
281 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…

777 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