basic datetime format question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PJ6

    basic datetime format question

    What's the easiest way to get a string from a datetime that omits the time?
    I want to respect whatever local format there is for dates, so it can't
    involve something like "mm/dd/yyyy".

    Paul


  • PJ6

    #2
    Re: basic datetime format question

    Never mind... duh.

    CDate(Item).ToS hortDateString

    "PJ6" <nobody@nowhere .net> wrote in message
    news:uWf5C80pFH A.820@TK2MSFTNG P09.phx.gbl...[color=blue]
    > What's the easiest way to get a string from a datetime that omits the
    > time? I want to respect whatever local format there is for dates, so it
    > can't involve something like "mm/dd/yyyy".
    >
    > Paul
    >[/color]


    Comment

    • Cor Ligthert [MVP]

      #3
      Re: basic datetime format question

      Paul,

      I prefer this one
      \\\
      Dim datestring As String = Now.ToString("d ")
      ///
      I hope this helps,

      Cor


      Comment

      Working...