How can you get week number from date?

like,I write 2022/1/2 then it show me today is sunday.

Which is it, do you want the day name returned or the week number ?

and I want to know the day of week in 3099/2/20

I mean I want to know day name

Use this block
image
see here for how you can return a specific element of the instant
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

Day Name can be returned with this block:
image

Week Number can be returned using:
image

1 Like