Click here to Skip to main content
15,909,091 members
Home / Discussions / C#
   

C#

 
GeneralRe: DateTime.Now Pin
Guffa10-Jun-08 11:40
Guffa10-Jun-08 11:40 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 1:43
George_George11-Jun-08 1:43 
GeneralRe: DateTime.Now Pin
Guffa11-Jun-08 2:28
Guffa11-Jun-08 2:28 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 16:23
George_George11-Jun-08 16:23 
GeneralRe: DateTime.Now Pin
Guffa11-Jun-08 20:24
Guffa11-Jun-08 20:24 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 22:19
George_George11-Jun-08 22:19 
AnswerRe: DateTime.Now Pin
DaveyM6910-Jun-08 3:32
professionalDaveyM6910-Jun-08 3:32 
GeneralRe: DateTime.Now Pin
Guffa10-Jun-08 4:20
Guffa10-Jun-08 4:20 
DaveyM69 wrote:
It probably is a waste but you need an instance of the DateTime struct to exist to be able to get the value!


No, the Now property is static, so there is no instance existing before calling the property. The "DateTime" in "DateTime.Now" is just a specification of the class, it's not a value.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: DateTime.Now Pin
DaveyM6910-Jun-08 4:43
professionalDaveyM6910-Jun-08 4:43 
GeneralRe: DateTime.Now Pin
Guffa10-Jun-08 6:03
Guffa10-Jun-08 6:03 
GeneralRe: DateTime.Now Pin
DaveyM6911-Jun-08 0:41
professionalDaveyM6911-Jun-08 0:41 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 1:33
George_George11-Jun-08 1:33 
GeneralRe: DateTime.Now Pin
DaveyM6911-Jun-08 2:37
professionalDaveyM6911-Jun-08 2:37 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 16:31
George_George11-Jun-08 16:31 
GeneralRe: DateTime.Now Pin
DaveyM6912-Jun-08 0:39
professionalDaveyM6912-Jun-08 0:39 
GeneralRe: DateTime.Now Pin
George_George12-Jun-08 1:29
George_George12-Jun-08 1:29 
GeneralRe: DateTime.Now Pin
Guffa11-Jun-08 2:19
Guffa11-Jun-08 2:19 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 1:28
George_George11-Jun-08 1:28 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 1:26
George_George11-Jun-08 1:26 
AnswerRe: DateTime.Now Pin
#realJSOP10-Jun-08 6:29
professional#realJSOP10-Jun-08 6:29 
GeneralRe: DateTime.Now Pin
George_George11-Jun-08 1:40
George_George11-Jun-08 1:40 
Questionasynchronous function callback Pin
George_George9-Jun-08 17:14
George_George9-Jun-08 17:14 
AnswerRe: asynchronous function callback Pin
N a v a n e e t h11-Jun-08 16:22
N a v a n e e t h11-Jun-08 16:22 
GeneralRe: asynchronous function callback Pin
George_George11-Jun-08 16:34
George_George11-Jun-08 16:34 
QuestionWill Using Console.Beep(); Too Much Damage Your Computer? Pin
qszwdxefc9-Jun-08 16:59
qszwdxefc9-Jun-08 16:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.