Updated date/datetime/time methods to create structured JavaScript.