year month date format?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    year month date format?

    hai all,
    i would like to have a sql server date function to fetch my datetime field as yyyy-mm-dd. ur assistance is appreciated. thanx in advance.
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Originally posted by nirmalsingh
    hai all,
    i would like to have a sql server date function to fetch my datetime field as yyyy-mm-dd. ur assistance is appreciated. thanx in advance.

    check the datepart() function

    Comment

    Working...