Here is an example of how to use this in React JS:
import dateTime from '../utils/dateTime';
// ...
return(
<div>
<p>Default: {dateTime.getTodayDefault()}</p>
<p>Condensed: {dateTime.getTodayCondensed()}</p>
<p>Expanded: {dateTime.getTodayExpanded()}</p>
<p>Time Now: {dateTime.getTimeNow()}</p>
<p>Raw Timestamp Now: {dateTime.getRawTimestampNow()}</p>
<p>Raw Date Time Now: {dateTime.getRawDateTimeNow()}</p>
</div>
)
Feel free to modify this for your own needs. The function names were selected such that they would not conflict with existing Date object function names.