Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hii to all

when i send a mail through c# code, the code contain datetime.now('MM/dd/yyyy') but
in mail it give some junk date
what's the solution

thanks
Posted
Comments
Wendelius 23-Dec-11 9:47am    
You should post the code where you're using that line to show the problem more clearly.
[no name] 23-Dec-11 9:48am    
Are we really supposed to give you the solution to such a vague question? How are we supposed to know what you have done? At least show some relevant code and remember we are not sitting next to you.

1 solution

DateTime.Now is a property. Are you sure your code is compiling?
 
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