Attempt at unifying POSIX locale/date format and windows  locale format stuff - somewhat better -but not perfect