Datetimepicker problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravidindian
    New Member
    • Oct 2011
    • 1

    Datetimepicker problem

    Dear friends, I am new to c# and facing problem with datetimepicker, first I am saving datefrom and dateto to mssql table in varchar field in dd/MM/yyyy format from datetimepicker in c#, than I am searching records between two dates and displaying in datagridview, its working fine, but when i am changing regional language from english uk to english us the format of datetimepicker changes to mm/dd/yyyy , so its not searching records, how to set default dd/MM/yyyy format, so that it cannot effect after changing language or suggest me some other way to get rid of this problem.
    Plz reply as early as possible.

    Thanks very much
  • arie
    New Member
    • Sep 2011
    • 64

    #2
    You may use CustomFormat field of DateTime Picker and always have your date formatted the way you want it.

    Comment

    Working...