c# - Datepicker format is getting changes when i open form in edit mode -


i have set datepicker format "dd/mm/yy". when open form insert data @ time taking right value. when open form in edit mode datepicker automatically changes format "mm/dd/yy".

dt.format = datetimepickerformat.custom; dt.customformat = "dd/mm/yy"; 

please try piece of line may you.

convert.todatetime(date database).tostring("dd/mm/yy"); 

thanks, anvesh


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -