datetime - what this line do in c# -


i want understand line in c#,

int32 dayofweekindex = (int32)datetime.now.dayofweek + 1; 

what return example if run today ?

i not have option run code.

it depends on in world , computer clock set to.

it returns value of dayofweek enum corresponding time run, plus 1. sunday 0, saturday 6.

so, thursday, dayofweekindex 5.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -