By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,033 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

how we extract date part from datetime value

100+
P: 198
Hi
i want to extract the date part from datetime value i use this coding in load event of form
DTPPicker1=now
DTPPicker2=now
after this i only want the date part from this DTPPicker1 and DTPPicker2
how is it possible
May 16 '08 #1
Share this Question
Share on Google+
2 Replies


QVeen72
Expert 100+
P: 1,445
i only want the date part from this DTPPicker1 and DTPPicker2
how is it possible
Hi,

Try this :

Text1.Text = Format(DtPicker1.Value,"dd-mm-yyyy")

REgards
Veena
May 16 '08 #2

100+
P: 198
Hi Veena
thanks it is working

REgards
varinder



Hi,

Try this :

Text1.Text = Format(DtPicker1.Value,"dd-mm-yyyy")

REgards
Veena
May 16 '08 #3

Post your reply

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