How Will I get the Present date is 1st of the Month in C# -


this question has answer here:

could please me,

how know "present date 1st of month" in c#. writing batch job (which runs on every day mid night 12 am) in c#, here doing logic , if present date 1st of month. kindly me.

take @ datetime.day property:

gets day of month represented instance.

so, in code test:

if(datetime.today.day == 1) {     // today first of month } 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -