Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts



i Have problem . i want to check in if condition weather today it is date 1st of the month or not how can i achieve it please help me
Posted
Comments
george4986 25-Sep-14 3:11am    
if(DateTime.Now.Day==1)
{
///day is 1
}
Herman<T>.Instance 25-Sep-14 3:30am    
set it as solution
george4986 25-Sep-14 3:36am    
added ;-)

1 solution

try this
C#
if(DateTime.Now.Day==1)
{
///day is 1
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900