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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to get date format

How to get date format

Scheduled Pinned Locked Moved Database
questionhelptutorial
4 Posts 2 Posters 1 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.
  • S Offline
    S Offline
    sooreeagt
    wrote on last edited by
    #1

    Hi all, How do I make the date format to DD-MMM-YYY, ie. 01-APR-1998. I have try to set 'DateStyle' to all options but none of them can show this format. Could someone help me please?

    Suresh.R

    C 1 Reply Last reply
    0
    • S sooreeagt

      Hi all, How do I make the date format to DD-MMM-YYY, ie. 01-APR-1998. I have try to set 'DateStyle' to all options but none of them can show this format. Could someone help me please?

      Suresh.R

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      What technology are you using? (That would be a help to finding your answer)


      Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

      S 1 Reply Last reply
      0
      • C Colin Angus Mackay

        What technology are you using? (That would be a help to finding your answer)


        Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

        S Offline
        S Offline
        sooreeagt
        wrote on last edited by
        #3

        Hi i want it in SQL... my INPUT is GetDate() and OUTPUT is 9-Apr-2007...ok..

        Suresh.R

        C 1 Reply Last reply
        0
        • S sooreeagt

          Hi i want it in SQL... my INPUT is GetDate() and OUTPUT is 9-Apr-2007...ok..

          Suresh.R

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          sooreeagt wrote:

          i want it in SQL...

          All RDBMS support SQL. Did you mean Microsoft SQL Server? If you meant SQL Server then there is no exact conversion to the format you want. Be aware that it is the responsibility of the Presentation layer to format data, not the database.


          Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

          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