Mobile App Development Software
Alpha TransForm - Free Trial
|
Alpha Anywhere - Build Apps for Free
Alpha Software
Documentation
  • Reference
  • Client API
  • Javascript Extensions
  • Date
  • getDayOfYear Method
Parent | Child | Previous | Next
  • adjust Method
  • constrain Method
  • diff Method
  • fromFormat Method
  • fromObject Method
  • getDayOfQuarter Method
  • getDayOfYear Method
  • getDaysInMonth Method
  • getDaysInQuarter Method
  • getDaysInYear Method
  • getParts Method
  • getQuarter Method
  • getQuarterRange Method
  • getWeekOfMonth Method
  • getWeekOfYear Method
  • getWeeksInMonth Method
  • getWeeksInYear Method
  • same Method
  • setClock Method
  • toCalendar Method
  • toFormat Method
  • toRelative Method
 
JavaScript

DategetDayOfYear Method

Syntax

Date.getDayOfYear()

Returns

daynumber

The day of the year.

Description

Extension to the native date variable to the get the day of the year of a given date.

Example

var d = new Date(2018,7,10);
var doy = d.getDayOfYear();
// doy = 221
Report an issue with this page
Mobile App Development Software

Alpha TransForm - Quickly Build Enterprise Mobile Forms
- Try it for Free

Alpha Anywhere - Low Code Platform for Mobile Developers
- Build Apps for Free
Alpha Software Corporation

781.229.4500
© Copyright 2000-2020 Alpha Software Corporation. All Rights Reserved

Privacy Policy