0

Hi All,

I want to set two textboxes, where I want to set the first day of current month in one textbox, and todays date in the second text box.

How can I get the first day of the current month?

Thanks In advance

2
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by Sarah Lee
0

textBoxName.Text = DateTime.Now.Month.ToString()+"/1/"+ DateTime.Now.Year.ToString();

0

I put this code, but it is showing todays' date 2/5/07 in two textboxes

0

I am sorry, I got it worked.
I misplaced the code.
Really sorry for that
Thanks

I was trying the same thing for another control also, infragistics webdatechooser,
In that, it was not working

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.