c# - How to know the number of days until today in this year -


i want know number of days january 1st today.

if today january 10th, numofdays=10, if today february 1st numofdays=32.

how can total no of days? thank you

you can use datetime's dayofyear property.

int dayofyear = datetime.now.dayofyear; 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -