Changeset 1555
- Timestamp:
- 2000-09-20T14:55:28+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/formattools.cpp
r1496 r1555 143 143 144 144 145 // returns a date of form _textmonthnn_ 31,1999145 // returns a date of form 31 _textmonthnn_ 1999 146 146 // input is date of type 19991231 147 147 // at least the year must be present in date … … 160 160 if (imonth < 0 || imonth > 12) return year; 161 161 162 if (date.size() < 8) return month + " ," + year;162 if (date.size() < 8) return month + " " + year; 163 163 164 164 text_t day = substr (datebegin+6, datebegin+8); 165 165 if (day[0] == '0') day = substr (day.begin()+1, day.end()); 166 166 int iday = day.getint(); 167 if (iday < 0 || iday > 31) return month + " ," + year;167 if (iday < 0 || iday > 31) return month + " " + year; 168 168 169 return month + " " + day + "," + year;169 return day + " " + month + " " + year; 170 170 } 171 171
Note:
See TracChangeset
for help on using the changeset viewer.