-1

i have DTPicket and TextBox.

how to change DTPicker with this value "2006,05,17"?

DTPicker format : "5/17/06" 'shortdate

for example : DTPicker value = "5/10/06"

Text1.Text value should be "2006,05,10

Thanks in advance...

3
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by Comatose
0

HI
Is this what you want to do

Change this DTPicker value = "5/10/06" TO DTpicker.Value = "5/10/06
And This
Text1.Text value should be "2006,05,10
TO
Text1.Text = Format(Text1.Text, "yyyy/mm/dd")
or which ever way around you want it
if this is wrong can you give some more information please

Alan

0

You can change the dtpicker's display value by:

DTPicker1.Format = dtpLongDate

However, if you actually have a textbox, AND a DtPicker, and you want them to display the same date in different formats, then you'll need to do some string manipulation.

0

watkins6878 & Comatos,

thanks for the reply....

this code has no effect Text1.Text = Format(Text1.Text, "yyyy/mm/dd")
it should be Text1.Text = Format(DTPicker1.Value, "yyyy,mm,dd")

thanks and more power...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.