Skip to content

week starting from sunday #11

@tiboun

Description

@tiboun

Duckdb currently support ISOWEEK only from date extraction. We can support week that start on first sunday thanks to the time formatting.

WITH t AS (SELECT CAST('2017-11-05' AS DATE) AS date)
SELECT
  date,
  CAST(strftime("date", '%U')  AS INT) AS week_sunday,
  EXTRACT(WEEK FROM date) AS week_monday FROM t

What do you think about implementing this ?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions