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