Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. datetime value

datetime value

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anujbanka1784
    wrote on last edited by
    #1

    i am geting value from datbase with this code CONVERT(varchar(11), TH_DT_HolidayDate) AS Expr1 and output is jan 15 2009 . but i want output like jan 15,2009 .how can i do this .thnx in advance.

    C S 2 Replies Last reply
    0
    • A anujbanka1784

      i am geting value from datbase with this code CONVERT(varchar(11), TH_DT_HolidayDate) AS Expr1 and output is jan 15 2009 . but i want output like jan 15,2009 .how can i do this .thnx in advance.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The way you're doing this, it's a SQL question. Return a date time instead and use the ToString method to return the date formatted as you'd like.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • A anujbanka1784

        i am geting value from datbase with this code CONVERT(varchar(11), TH_DT_HolidayDate) AS Expr1 and output is jan 15 2009 . but i want output like jan 15,2009 .how can i do this .thnx in advance.

        S Offline
        S Offline
        Sneha Bisht
        wrote on last edited by
        #3

        CONVERT(varchar(11), TH_DT_HolidayDate , 18) may be 18 not sure , u can change this digit from 10 to 19 and then check them

        A 1 Reply Last reply
        0
        • S Sneha Bisht

          CONVERT(varchar(11), TH_DT_HolidayDate , 18) may be 18 not sure , u can change this digit from 10 to 19 and then check them

          A Offline
          A Offline
          anujbanka1784
          wrote on last edited by
          #4

          thnx..

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups