PC Review


Reply
Thread Tools Rate Thread

declaring Global varaible as dateTime

 
 
=?Utf-8?B?Vmlua2k=?=
Guest
Posts: n/a
 
      24th Apr 2007
Hello Everyone,

I have this global variable

Private dateTime orderDetail= new dateTime();


I want to initialize this variable. How can I do that.

Thanks.
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      24th Apr 2007
Vinki <(E-Mail Removed)> wrote:
> Hello Everyone,
>
> I have this global variable
>
> Private dateTime orderDetail= new dateTime();


In what way is that a global variable?

> I want to initialize this variable. How can I do that.


Well, that *does* initialise it - but probably not to what you want.
What do you want the value to be?

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      24th Apr 2007
"Vinki" <(E-Mail Removed)> wrote in message
news:C09981F9-612A-4EB5-A26A-(E-Mail Removed)...

> I have this global variable
>
> Private dateTime orderDetail= new dateTime();


Er, no you don't... You have a *private* DateTime variable...

> I want to initialize this variable. How can I do that.


You already have...


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Declaring DateTime variables and comparing them Anil Gupte Microsoft C# .NET 2 29th Mar 2008 05:51 PM
Declaring a variable that is a datetime datatype .Net Sports Microsoft C# .NET 2 13th Jul 2005 12:09 PM
Declaring a string as a global value =?Utf-8?B?TWF0dA==?= Microsoft Access 1 16th Nov 2004 04:29 PM
declaring a DateTime const Microsoft C# .NET 2 23rd Mar 2004 07:21 AM
Declaring Global Variables skmr3 Microsoft Excel Programming 1 14th Jul 2003 05:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 PM.