Toolset
export class DateToolset {
static getFirstDayOfMonth(date: Date): Date {
return new Date(date.getFullYear(), date.getMonth(), 1);
}
static getLastDayOfMonth(date: Date): Date {
return new Date(date.getFullYear(), date.getMonth() + 1, 0);
}
// more date-related utility methods here...
}Creating new toolset
Using CLI Command with options
soap new toolset -n "Date" -e "shop" -l "domain" -m "getFirstDayOfMonth(date:Date):Date, getLastDayOfMonth(date:Date):Date"Using Interactive Form
Using JSON Configuration
File Structure
Last updated