Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Datepart with weeknumber ("ww") on year 2021 shows wrong week number.

$
0
0

Today is 25th January (week 4), and I'm using this function in ASP classic:

<%=DatePart("ww", Date)%>

The result becomes 5. But today is week number 4. I tried to hardcode the string instead of Date - function like this:

<%=DatePart("ww", "2021-01-25")%>

Still getting 5 as result. Are there any workarounds for this issue?


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>