added portable version of date