DateTime Format in .NET
Posted: Sun Jul 04, 2004 7:45 am
Please advise me how to format bottom axis datetime data of TChartAx6 in VB.NET
for example
Dim P as integer
p = AxTChart1.Series(0).YValues.Locate(AxTChart1.Series(0).YValues.Minimum)
<--Both followings 2 line does not work-->
TextBox1.Text = Format(AxTChart1.Series(0).XValues.Value(p), "yy/mm/dd hh:mm")
TextBox1.Text = AxTChart1.Series(0).XValues.Value(p).ToString("yy/mm/dd hh:mm")
Thanks in advance.
for example
Dim P as integer
p = AxTChart1.Series(0).YValues.Locate(AxTChart1.Series(0).YValues.Minimum)
<--Both followings 2 line does not work-->
TextBox1.Text = Format(AxTChart1.Series(0).XValues.Value(p), "yy/mm/dd hh:mm")
TextBox1.Text = AxTChart1.Series(0).XValues.Value(p).ToString("yy/mm/dd hh:mm")
Thanks in advance.