473,480 Members | 3,069 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get future date with datepicker

1 New Member
in my project of hotelmanagment..for room issue date i have used date picker, it will automatically take present date.., for how many days a customer staying i kept a text box and enter no of days staying .my probem is how i got due date in another date time picker.when i enter the duration of days and that date must be shown.i need code for this in c#..plz help me..
for ex..my issue date is 31-03-2012 no of days staying 3 my due date must be 3-04-2012.
Jul 23 '12 #1
2 2441
lyodmichael
75 New Member
are you using 2 date time picker or just 1? if you using date time picker for just picking up the staying day hmm, why you just minus the day to day to the number of day the customer will staying. us
Expand|Select|Wrap|Line Numbers
  1. date.now
for the day.

i get the logic but im not good in c#, sorry

#tip
Jul 23 '12 #2
Rabbit
12,516 Recognized Expert Moderator MVP
Use the .AddDays method.
Jul 23 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1693
by: Enea | last post by:
Hi to everybody, I would like to know if someone has already faced the following problem: I have to manage the access to a reserved area in such way to prevent that two accounts are...
4
3359
by: Jorge_Beteta | last post by:
Hello, I work for an attorney staff, so basically the whole day they are sending themselves a lot and a lot of papers (Word docs or Excell sheets). We are going to propose them the use of a...
2
1062
by: Joseph Chase | last post by:
I am new to Python. In the past, I have noticed that I have spent a lot of time managing my C++ libraries. When my personal frameworks got large enough, and some moving around/refactoring was...
3
1915
by: Yves Dhondt | last post by:
Hello, I'm looking for information about the loading/unloading of unmanaged dlls. Using the debugger I think it works as follows : the unmanaged DLL is loaded as soon as a call to one of it's...
0
339
by: falcon | last post by:
I know I came after the battle. And I have just another sight on context managment. Simple Context Managment may look in Python 2.4.1 like this: Synhronized example: def...
2
1913
by: Jason Davis | last post by:
Hi there, Is anyone familier with an access managment system for orders? Something simple like products, alphabetic list of clients and archive of ordered products. Thanks! Jas.
1
1358
by: LP | last post by:
Hello .NET experts A group of develpers here are having some arguements about different ways to write program with minimal memory footprint. One method in buisness class creates an instance of...
3
1106
by: Eirik Eldorsen | last post by:
I'm starting a project where I willl need an Ad Managment solution. Could someone recommend me a product? -- Eirik
2
4562
by: Daniel | last post by:
Hi, I have a question regarding the memory managment in stl stacks. I want to use stacks to store a very large amount of numbers (some millions), thus I'm interested in how the stack behaves...
1
1240
by: kalid2002 | last post by:
I have treid alot to do this program Library managment system by java Contiguous Array but i fount alot of defficulties so i hope any one could help me
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.