Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6762615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:22:36+00:00 2026-05-26T14:22:36+00:00

What is the .net equivalent of the Oracle to_char(date, IW) function (returns the week

  • 0

What is the .net equivalent of the Oracle to_char(date, “IW”) function (returns the week number). I tried using CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(date, CalendarWeekRule.FirstFullWeek, DayOfWeek.Monday) but some results don’t match. Not really sure what values I should pass for the CalendarWeekRule and DayOfWeek enums.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:22:36+00:00Added an answer on May 26, 2026 at 2:22 pm

    It looks like Oracle uses the ISO-8601 definition of “week of year” which isn’t quite supported by .NET out of the box. However, this blog post gives some alternative code you could use to fudge it.

    As an aside, I’d be interested to know whether my Noda Time project gives you the right results (you could always use that instead of DateTime 🙂 – if you can give some sample input, Oracle output and .NET output (particularly where they differ) that would be useful to me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a modern vb.net equivalent to the Using$() function in [Turbo?] Basic?
What is the c#.net equivalent for php's preg_replace function? php code is like this:
Is there a .NET equivalent to using Servlet Filters for request pre-processing in .NET?
I'm looking for a ASP .NET Caching equivalent for a PHP website app using
I'm wondering if there is an ASP.Net MVC equivalent to PHP's require_once() function. Lets
What is VB6's equivalent to .NET Short? I need a 2 byte number variable...
Would be nice if the Entity framework had the ADO.Net equivalent of DataRow.HasErrors. I'm
Exist a .net class equivalent to the TTimer delphi component? TTimer is used to
Is there an equivalent of .NET's data binding in Qt? I want to populate
Does Java have an equivalent to .NET resource (.resx) files for localization? In .NET,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.