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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -