.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Text box date + one day

Posted By: Baiju EP     Posted Date: September 10, 2012    Points:5   Category :ASP.Net
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

Author: Baimey Rajesh             
Posted Date: September 11, 2012     Points: 20   

Hi Baiju,

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.


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend