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
Post a Comment