Skip to content

NiceDate (ACEweb Version) ​

Returns formatted dates in ACEweb routines.

Note: this version only works in ACEweb. This NICEDATE version works in Student Manager reports.

ACEweb Routines/Templates ​

ScheduleFields INI, XCoursestatus.htm, XEnrollcard.htm

Required Parameters ​

  1. Course Start Date field (begins, oCourse.oData.cobegdate)

Optional Parameters ​

  1. Course End Date Field (ends, oCourse.oData.coenddate)

  2. Numeric return value:

    0= returns full dates (e.g. September 25, 2016; September 25 - November 6, 2016) 2=returns date with abbreviated month (e.g. Sep 25, 2016). This option only applies with single dates. 3= abbreviate month and removes year (e.g. Sep 25, Sep 25 - Nov 6) 4 = uses DD-Mon-YY format (e.g. 25-Sep-2016) 5 = uses Windows long date format, usually written out to include the day of week (e.g. Sunday, September 25, 2016) [#YY]= returns dates with 2 digit year (e.g. 09/25/16 - 11/06/16) [#YY# through ]= return dates with 2 digit year and ' through ' delimiter (e.g. 09/25/16 through 11/06/16) [dmy#YY]=returns dates in british format (dd/mm/yy) with 2 digit year (e.g. 25/09/16 - 06/11/16)

  3. Numeric return value: number of desired length of string - Pads string to N characters (i.e. 35 pads return value to 35 characters). Required if you are using nicedate() in the ScheduleFields setting.

Example(s) ​

ScheduleFields:

nicedate(begins):Begins - returns formatted begin date (e.g. September 25, 2016) nicedate(begins,,2):Begins - returns formatted begin date with abbreviated month (e.g. Sep 25, 2016) nicedate(begins,ends,0,35):Dates - returns formatted begin/end dates (e.g. September 25 - November 6, 2016) nicedate(begins,ends,3,20):Dates - returns abbreviated dates (e.g. Sep 25 - Nov 6) nicedate(begins,ends,[#YY],20):Dates - returns dates with 2 year designation (e.g. 09/25/16 - 11/06/16)

XCourseStatus:

##NiceDate(tCourse.begins)## returns formatted course begin date (e.g. September 25, 2016) ##NiceDate(tCourse.begins,,2)## - returns formatted begin date with abbreviated month (e.g. Sep 25, 2016) ##NiceDate(tCourse.begins,ends)## returns formatted begin/end dates (e.g. September 25 - November 6, 2016) ##NiceDate(tCourse.begins,ends,3)## returns abbreviated format (e.g. Sep 25 - Nov 6)

XEnrollCard.htm:

##NiceDate(oCourse.oData.cobegdate,oCourse.oData.coenddate)## returns dates in full format (e.g. September 25 - November 6, 2016) ##NiceDate(oCourse.oData.cobegdate,,2)## - returns formatted begin date with abbreviated month (e.g. Sep 25, 2016) ##NiceDate(oCourse.oData.cobegdate,oCourse.oData.coenddate,3)## returns abbreviated date format (e.g. Sep 25 - Nov 6)