VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 300,488 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,808 people online right now. Registration is fast and FREE... Join Now!




Date picker help

 

Date picker help, Date picker

darqchylde

20 Nov, 2008 - 05:20 AM
Post #1

New D.I.C Head
*

Joined: 20 Nov, 2008
Posts: 1

Hello everyone.

I have 2 date pickers the 1st date picker is where the user will select the delivery date for a certain product. then the 2nd date picker will have a date automatically set 3 months from the 1st date picker value.

everythings working fine.

but, I want my 1st date picker to always have current date. the current date that is set in the computer being used.

How could i code this. please help me.

Thank you!!!

This post has been edited by darqchylde: 20 Nov, 2008 - 06:40 AM

User is offlineProfile CardPM
+Quote Post


Jayman

RE: Date Picker Help

20 Nov, 2008 - 08:37 AM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,544



Thanked: 226 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Set the Value property using the DateTime object.

CODE
datetimepicker.Value = DateTime.Now

User is offlineProfile CardPM
+Quote Post

ValPaliy

RE: Date Picker Help

20 Nov, 2008 - 09:09 AM
Post #3

D.I.C Lover
Group Icon

Joined: 6 Dec, 2007
Posts: 1,362



Thanked: 9 times
My Contributions
And I thought it's going to be about girls/guys ROFL :-)
User is offlineProfile CardPM
+Quote Post

tope10

RE: Date Picker Help

20 Nov, 2008 - 10:56 PM
Post #4

New D.I.C Head
*

Joined: 25 Jun, 2008
Posts: 23



Thanked: 2 times
My Contributions
QUOTE(darqchylde @ 20 Nov, 2008 - 05:20 AM) *

Hello everyone.

I have 2 date pickers the 1st date picker is where the user will select the delivery date for a certain product. then the 2nd date picker will have a date automatically set 3 months from the 1st date picker value.

everythings working fine.

but, I want my 1st date picker to always have current date. the current date that is set in the computer being used.

How could i code this. please help me.

Thank you!!!


hi! if you are working in vb 6 you may use the code.

dtpicker1.value = Now 'or use Date function



thats it!.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 04:14AM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month