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 1112627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:44:25+00:00 2026-05-17T02:44:25+00:00

I have the following code. dateStart & dateEnd are both DateTime. My issue is

  • 0

I have the following code. dateStart & dateEnd are both DateTime. My issue is that this is generating the following url

https://www.mysite.localhost/Order/Products/27?categoryId=0&dateStart=09%2F24%2F2010%2000%3A00%3A00&dateEnd=10%2F01%2F2010%2000%3A00%3A00&allDates=0

the issue is that it’s creating 09/24/2010 and not 24/09/2010

var url = Url.Action("Products", "Order",
                                     new
                                         {
                                             id = companyId,
                                             categoryId = 0,
                                             dateStart = dateStart,
                                             dateEnd = dateEnd,
                                             allDates = 0
                                         });
  • 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-17T02:44:26+00:00Added an answer on May 17, 2026 at 2:44 am

    try one of this

    •Set the culture and user interface culture in Web.configUse this approach if you want to set the default culture and user interface culture for all the pages in a Web application. The following fragment from a Web.config file illustrates this technique.

    < configuration>

    < system.web>
    < globalization culture=”en-US” uiCulture=”de-DE” />

    < /configuration>

    •Set the culture and user interface culture in the @ Page directiveUse this approach if you want to override the default culture and user interface culture for a specific page in a Web application. The following fragment from an .aspx file illustrates this technique.

    <%@ Page Culture=”en-GB” UICulture=”Fr-FR” %>

    •Set the culture and user interface culture programmaticallyUse this approach if you want to select which culture and user interface culture to use at run time.
    Note You cannot change a thread’s culture in semi-trusted code; changing the culture requires a SecurityPermission with the SecurityPermissionFlag,ControlThread set. Manipulating threads is dangerous because of the security state associated with threads. Therefore, this permission should be given only to trustworthy code, and then only as necessary.
    The following code in an ASP.NET Web page retrieves the user’s language preferences from the Request.UserLanguages property and uses the culture and user interface culture for the preferred language.

    using System.Globalization;
    using System.Threading;

    // Set the culture to the browser’s accept language
    Thread.CurrentThread.CurrentCulture =
    CultureInfo.CreateSpecificCulture(Request.UserLanguages[0]);

    // Set the user interface culture to the browser’s accept language
    Thread.CurrentThread.CurrentUICulture =
    new CultureInfo(Request.UserLanguages[0]);
    Note You cannot change the CurrentCulture or CurrentUICulture properties when programming with the .NET Compact Framework. If you have to support per-application localization on smart-client devices such as Pocket PCs, you must use a CultureInfo object to store the user-selected culture internally, and use it explicitly whenever loading resource files or formatting data.

    i’ve copied from
    http://msdn.microsoft.com/en-us/library/ff647353.aspx

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

Sidebar

Related Questions

I have following code for loading image from url in xml parsing endElement method
I have following code that I am compiling in a .NET 4.0 project namespace
I have following code: def whatever(url, data=None): req = urllib2.Request(url) res = urllib2.urlopen(req, data)
I have a file of the following format Summary:meeting Description:None DateStart:20100629T110000 DateEnd:20100629T120000 Time:20100805T084547Z Summary:meeting
I have following code in a html form <select name=category class=input onchange=ShowTB(this,'suggest');> <option value=0
I have following code that displays an Image with letters, public class MainActivity extends
I have the following piece of SQL code that does the following: Obviously looks
I have following code that creates Linq query. I've never used Linq until today
I am using SQL Server with t-Sql I have the following code that checks
I have following code to insert data into GiftCouponPayment table and Payment table. This

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.