mysql - How to format sql query to get month without leading 0 -
I am trying to format mysql queries to show months without major zeros. I know that Use % m will give me months leading zero, but I was thinking that it is anyway to get it without major 0.
% c - month, numeric (0..12 ) (Source :)
Specified details% name of a brief week (Sun .. sat)% b The name of the contracted month (January .. DC)% C Months (0, 1, 2, 3, one ??)% d day of the month with numerical (0..12)% D English suffix, numerical (00.31)% e day of the month, Numerical (0..31)% F microseconds (000000. 99 99 99)% h hour (00..23)% hH (01. 12)% i hour (01.12)% i minute, numeric A (00.5.5)% of year J (001.366)% K Hour (0..23)% L Hour (1..12)% M Month Name (January .. Dec.)% Month, Numerical (00.12 )% P AM or PM% R Time, 12-Hour (HH: mm: SS, AM or PM later)% S second (00.5.5)% S second (00.5.5)% T Time, 24-Hours (HH: mm: SS)% U Week (00 ..53), where Sunday is the first day of the week; Week () mode 0% V Week (00..53), where Monday is the first day of the week; Week () mode is 1% V Week (01. 5.5), where Sunday is the first day of the week; Week () Mode 2; Used with% X% V week (01..53), where is the first day of the week on Monday; Week () Mode 3; Week of the week (0 = Sunday = 6 = Saturday), with the name of the name% X% W week (Sunday ... Saturday) x for the week where Sunday is the first day of the week, numerical, four digits; For the week,% V% x is used with the year, where Monday is the first day of the week, numerical, four digits; % V% Y years, numerical, four digits% y years, numerical (two digits) %% used by a literal%% for% x% x, any one ???? Not listed above
Comments
Post a Comment