Function
Static Public Summary | ||
public |
fixShortISO(date: String): String Takes incomplete iso string and return a complete one |
|
public |
getDayOfYear(date: Date): Number Get day number in the year of the passed date |
|
public |
Get the browser timezone name , if not supported then the browser timezone offset formatted |
|
public |
getWeekNumber(date: Date, weekStart: Number): Number Get the Week Number in the passed date |
|
public |
getWeekStartByLocale(locale: locale): Number Find out when the first day of the week based on the passed locale |
Static Public
public fixShortISO(date: String): String source
import {fixShortISO} from 'bbj-masks/src/DateMask/DateMask.js'
Takes incomplete iso string and return a complete one
Params:
Name | Type | Attribute | Description |
date | String | incomplete iso string |
public getDayOfYear(date: Date): Number source
import {getDayOfYear} from 'bbj-masks/src/DateMask/DateMask.js'
Get day number in the year of the passed date
Params:
Name | Type | Attribute | Description |
date | Date |
public getTimezoneOrOffset(): String source
import {getTimezoneOrOffset} from 'bbj-masks/src/DateMask/DateMask.js'
Get the browser timezone name , if not supported then the browser timezone offset formatted
public getWeekNumber(date: Date, weekStart: Number): Number source
import {getWeekNumber} from 'bbj-masks/src/DateMask/DateMask.js'
Get the Week Number in the passed date
public getWeekStartByLocale(locale: locale): Number source
import {getWeekStartByLocale} from 'bbj-masks/src/DateMask/DateMask.js'
Find out when the first day of the week based on the passed locale
Params:
Name | Type | Attribute | Description |
locale | locale |