Changeset 1555


Ignore:
Timestamp:
2000-09-20T14:55:28+12:00 (24 years ago)
Author:
nzdl
Message:

Changed the way dates are formatted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/formattools.cpp

    r1496 r1555  
    143143
    144144
    145 // returns a date of form _textmonthnn_ 31, 1999
     145// returns a date of form 31 _textmonthnn_ 1999
    146146// input is date of type 19991231
    147147// at least the year must be present in date
     
    160160  if (imonth < 0 || imonth > 12) return year;
    161161
    162   if (date.size() < 8) return month + ", " + year;
     162  if (date.size() < 8) return month + " " + year;
    163163
    164164  text_t day = substr (datebegin+6, datebegin+8);
    165165  if (day[0] == '0') day = substr (day.begin()+1, day.end());
    166166  int iday = day.getint();
    167   if (iday < 0 || iday > 31) return month + ", " + year;
     167  if (iday < 0 || iday > 31) return month + " " + year;
    168168   
    169   return month + " " + day + ", " + year;
     169  return day + " " + month + " " + year;
    170170
    171171
Note: See TracChangeset for help on using the changeset viewer.