Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Text box date + one day
September 10, 2012
have a web in .aspx,.vb code. in a page i have 2 text boxes for date out from previous firm and joining our firm. the first is date out from previous firm. As i fill the date out, i wish that the date joined our firm gets automatically filled with date out + one day. is it possible.please help me
Posted Date: September 11, 2012 Points: 20
I guess this will help
Dim dateOut as DateTime
dateOut = DateTime.ParseExact(textbox1.Text, "dd-MMM-yyyy", null);
Dim dateIn as DateTime = dateOut.AddDays(1)
textBox2.Text = dateIn.ToString("dd-MMM-yyyy")
Please let me know if there is a problem.
To post reply
Related Questions Related Questions
How to write to a text file in C#
User can not select TEXT for copy paste from my .aspx page...
Doubt in Date/time
How to show hyperlink, Linkbutton text on the tiltle bar of Internet explorer...
How to restrict user to (ctrl+v) option for a text box..?
display text in other page using c#
display text in other page
disply contacts in text box seperated by cama
How to get records from start date and end date of the month using MYSQL Query
How i can read a Text from Image in a web application ?
Latest Forum Questions From The Same Category
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
How to read Unicode form PDF File and Save into DataBase ?
How to identify the color format of eps/tiff using c#?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend