question

phllle avatar image
phllle asked

Extracting Week from calculated date column?

I converted a column containing milliseconds to a date datestr and now I'm looking have a new column to extract week from that date column datestr. I've also tried date_part as well. How can I get this to work? Please help! Thank you so much.

sqldate
query.png (31.7 KiB)
error.png (14.8 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
borispinsky avatar image
borispinsky answered

select datepart(WEEK,yourdate)

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.