title: zedgraph, how to convert XAxis.Scale.Min to a date
body: <p>I use zedgraph to draw figures in my vb.net project. <strong>The x axis of figure is date</strong>. I have two text boxes showing the minimum and maximum values of x axis in date. The following code shows how to get x axis values when a figure is zoomed by using isEnableWheelZoom property, also see this link <a href="https://stackoverflow.com/questions/8536325/zedgraph-enablewheelzoom-how-to-get-axis-values-after-zooming">zedgraph EnableWheelZoom, how to get axis values after zooming?</a>. But I found that I only get axis value, e.g. 4508.345, but <strong>NOT</strong> the date that I want. Actually on figure, it shows date correctly. My question is how to get the minimum and maximum date on figure?</p>
  
  <pre><code>    Friend WithEvents gcMain As ZedGraph.ZedGraphControl 
  Me.gcMain.IsZoomOnMouseCenter = True 
  Me.gcMain.IsEnableWheelZoom = True 
  
      Private Sub gcMain_ZoomEvent(ByVal sender As ZedGraphControl, ByVal oldState As ZoomState, ByVal newState As ZoomState) Handles gcMain.ZoomEvent
      tbxRangeStart.Text = CStr(New XDate(gcMain.GraphPane.XAxis.Scale.Min))
      tbxRangeEnd.Text = CStr(New XDate(gcMain.GraphPane.XAxis.Scale.Max))
  
  End Sub
  </code></pre>