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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -