Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Change date format in compare validator

Change date format in compare validator

Scheduled Pinned Locked Moved ASP.NET
questionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rain1178
    wrote on last edited by
    #1

    Hi, I have a web page which allows user to key in start date and end date. I used compare validator to validate the start date cannot earlier (greater) than end date. However, my date format to be enter by user is dd/mm/yyyy. Thus the problem arise here, the compare validator validate the date in mm/dd/yyyy format. How can i change the compare validator format to dd/mm/yyyy?:confused:

    S 1 Reply Last reply
    0
    • R rain1178

      Hi, I have a web page which allows user to key in start date and end date. I used compare validator to validate the start date cannot earlier (greater) than end date. However, my date format to be enter by user is dd/mm/yyyy. Thus the problem arise here, the compare validator validate the date in mm/dd/yyyy format. How can i change the compare validator format to dd/mm/yyyy?:confused:

      S Offline
      S Offline
      sbt_sbt
      wrote on last edited by
      #2

      <system.web> .................... <globalization culture="en-GB" uiCulture="en-GB" requestEncoding="utf-8" responseEncoding="utf-8" /> </system.web>;

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups