get date with out timestamp javascript code example Example: js timestamp var timestamp = new Date().getTime();