00001 /* Copyright (C) 2012 Abisource.com 00002 * 00003 * This program is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU General Public License 00005 * as published by the Free Software Foundation; either version 2 00006 * of the License, or (at your option) any later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00016 * 02110-1301 USA. 00017 */ 00018 00019 #ifndef ODC_UTIL_H 00020 #define ODC_UTIL_H 00021 00022 #include "ut_string.h" 00023 #include "ut_assert.h" 00024 00025 // Converts specified date from MM-DD-YYYY to YYYY-MM-DD(ISO8601) 00026 // or vice versa and returns new string representation 00027 std::string ODc_reorderDate(const std::string &dateStr, bool fromISO); 00028 00029 00030 #endif /* ODC_UTIL_H */ 00031