473,486 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how do I get date and time of compilation

gs
should I use property? class level variable and use pre-processor?
Jun 6 '06 #1
5 4833
> should I use property? class level variable and use pre-processor?

I use the exe file's date:
FileDateTime(Application.ExecutablePath)
There may be something better in in fw 2.0.

Jun 6 '06 #2
gs
thank you. that is good enough
"AMercer" <AM*****@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
should I use property? class level variable and use pre-processor?


I use the exe file's date:
FileDateTime(Application.ExecutablePath)
There may be something better in in fw 2.0.

Jun 6 '06 #3
gs
oops. Application is not defined when I try to use
FileDateTime(Application.ExecutablePath)
in new()
what other context can I use it?

"AMercer" <AM*****@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
should I use property? class level variable and use pre-processor?


I use the exe file's date:
FileDateTime(Application.ExecutablePath)
There may be something better in in fw 2.0.

Jun 6 '06 #4
> oops. Application is not defined when I try to use
FileDateTime(Application.ExecutablePath)
in new()
what other context can I use it?


It is probably your imports. The fully qualified names are:
Microsoft.VisualBasic.FileDateTime
System.Windows.Forms.Application.ExecutablePath

Jun 6 '06 #5
gs
thank you

However I still get trouble with
Dim appPathFn As String

appPathFn = System.Windows.Forms.Application.ExecutablePath

Windows is not a member of System

I am using visual basic .net express 2005. don't know if that make any
difference. So far Google has not helped be yet

"AMercer" <AM*****@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...
oops. Application is not defined when I try to use
FileDateTime(Application.ExecutablePath)
in new()
what other context can I use it?


It is probably your imports. The fully qualified names are:
Microsoft.VisualBasic.FileDateTime
System.Windows.Forms.Application.ExecutablePath

Jun 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1956
by: placid | last post by:
how would i get the current date in the format of DD/MM/YYYY, do i use functions in time.h and how would i compile it (linking) ?
8
22442
by: Michael A. Covington | last post by:
Is there a way to make a C# program print the date on which it was compiled? Finding the file date of the executable is one way, but it's not foolproof. Thanks!
5
2473
by: Manish Jain | last post by:
Environment: Windows 2000 Server (SP4), ASP.Net/C# (Framework 1.1) Hardware: PIII @ 700 MHz, 512 MB RAM ----------------------------------------------------------------------------...
4
2677
by: karunakar | last post by:
Hi All I was poplating Datagrid Datagrid has one of the column showing datetime field format iam showing DATE here not Necessary to populate the Time Frame Even my datebase column also...
13
3014
by: Adam Blair | last post by:
Is it possible to bind a switch statement to an Enum such that a compile-time error is raised if not all values within the Enum are handled in the switch statement? I realise you can use default:...
3
3669
by: Just D. | last post by:
We all know hot to get the Assembly name and version. Can we get the assembly compilation date and how can we get this datetime if it's possible? It's not a very good idea to get the file DateTime...
3
2772
by: Jesper | last post by:
Hi, In c++ ( I do no longer remember exactly how) I used some compiler predefined macro to insert the date and time of compilation into a string. How is this done in c# In c++ it could have...
7
31790
by: James P. | last post by:
Hello there, In my asp.net page using VB, I have a date text field in mm/dd/yyyy format. When a date is entered, I'd like to validate it to make sure the date is greater than or equal to the...
28
2605
by: richardlang | last post by:
Anyone out there ever come across a preprocessor macro that compares an argument value against the predefined __DATE__ macro in order to control conditional compilation based on date. Something...
8
6569
by: Yaniv | last post by:
Hi I would like to add form with version data like version number and compilation time and date. I would like the time and date to be added automatically to my project. How can I do that?...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.