MYSQL: How to convert a string into a month (Number) [duplicate]
问题 This question already has answers here : MySQL MONTHNAME() from numbers (5 answers) Closed 6 years ago . I have the short version of months: JAN, FEB, MAR , etc. and would like to convert them to it's respective numeric value: 1, 2, 3 , etc Also, I would like to be able to change back and forth between the numeric-month-value, to a "short" month name ( JAN, FEB, MAR ) and it's long version ( January, February, March , etc) NOTE: As @dipu-raj pointed out, this is not a duplicate because I am