Mobile App Development Software
Alpha TransForm - Free Trial
|
Alpha Anywhere - Build Apps for Free
Alpha Software
Documentation
  • Reference
  • Client API
  • Javascript Extensions
  • Date
  • getWeekOfYear 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

DategetWeekOfYear Method

Syntax

Date.getWeekOfYear()

Returns

weeknumber

The week of the year.

Description

Extension to the native date variable to the get the week of the year a given date is in.

Example

var d = new Date(2018,7,10);
var w = d.getWeekOfYear();
// w = 31
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