dedecms date and time format, you can choose according to your needs. DEDECMS uses the strftime() function to format all parameters of the time, including the year date base, hour format, etc., we collect it
Date/time format (using the strftime () function format the time) home page: ([field: for its pubdate function = 'strftime (' % m - % d' @ me) '/]) = = (5-15) ([field: for its pubdate function='strftime('%b %d, %Y',@me)'/])==(May 15, 2015) List page: [field:pubdate function='GetDateTimeMK(@me)'/]==2015-1-1 18:30:02 [field:pubdate function='GetDateMK(@me)'/]==2015-05-15 [field:pubdate function=MyDate('y-m-d',@me)/]==15-12-17[field:pubdate function='strftime('%y-%m-%d %H:%M:%S',@me)'/]==15-12-17 10:35:21[field:pubdate function='strftime('%m-%d M: H: % % % S '@ me) /] = = 12-17 10:35:21 [field: for its pubdate function =' strftime (" % d % % M y year month day ', @ me) '/] = = on December 17, 15 years [field: for its pubdate function='strftime('%Y year %m month %d day %H point %M minute %S second ',@me)'/]== December 17, 2015 10:35.21 seconds Content page: {dede:field name='pubdate' function='GetDateMk(@me)'/}==2015-05-15 {dede:field name='pubdate' function='strftime('%b %d, %Y',@me)'/}==May 15, 2015 Uses the strftime() function to format the time: %A short for day of the week %A full for day of the week %b Short for month of the month %B full for month %c Time string of the standard date %C last two digits of the year %d Day of the month in decimal notation %D month/day/year %e In a two-character field, day of the month %F year - month - day %g Last two digits of the year in decimal notation, using the week-based year %G year, Use the week based year %h abbreviated month name %H hours in the 24-hour system %I hours in the 12-hour system %j Day of the year in decimal format %m Months in decimal format %M Minutes in the 10-hour system %n New line character %p The local AM or PM equivalent displays %R time in the 12-hour system %R Display hour and minute: hh:mm %S Seconds in decimal format %t Horizontal TAB %T Display hour and second: hh:mm:ss %u Day of the week, with Monday as the first day (values from 0 to 6, Monday being 0) %U Week of the year, with Sunday as the first day (values from 0 to 53) %V Week of the year, using week-based year %w decimal days (values from 0 to 6, Sunday is 0) %W Week of the year, with Monday as the first day (values from 0 to 53) %X standard date string %X standard time string %y Decimal year without century (values from 0 to 99) %Y Decimal year with century part %z, %Z Time zone name, return null character if time zone name cannot be obtained.