/ Set format so formatted dates can be converted on input/output. */ /
| 2384 | /* Set format so formatted dates can be converted on input/output. */ |
| 2385 | /***********************************************************************/ |
| 2386 | bool DTVAL::SetFormat(PGLOBAL g, PCSZ fmt, int len, int year) |
| 2387 | { |
| 2388 | Pdtp = MakeDateFormat(g, fmt, true, true, (year > 9999) ? 1 : 0); |
| 2389 | Sdate = (char*)PlugSubAlloc(g, NULL, len + 1); |
| 2390 | DefYear = (int)((year > 9999) ? (year - 10000) : year); |
| 2391 | Len = len; |
| 2392 | return false; |
| 2393 | } // end of SetFormat |
| 2394 | |
| 2395 | /***********************************************************************/ |
| 2396 | /* Set format from the format of another date value. */ |
no test coverage detected