vexi.js.Date - Date Object

An alternative to the standard vexi.js.ECMADate object that is a bit saner to work with and intended to be used instead in Vexi applications.

Whereas the ECMA date object represents a precise instant in time (milliseconds), the Vexi date object represents abstract dates e.g. year/month/day ... etc.

Date parts are optional e.g. can be just year/month.

Properties

Property Type Description

year

Number

The year as a standard Gregorian year.

month

Number

The year as a standard Gregorian month.

day

Number

The year as a standard Gregorian date.

weekday

hours

minutes

seconds

Methods

Method Returns Description

addPeriod()

dateDiff()

withPart()

 


Copyright © 2011 The Vexi Project (vexi.sourceforge.net)