nghiaap
asked on
Change Date Format programically
how can i change date format from mm/dd/yyyy to dd/mm/yyyy programically
further more only my app use the new format (dd/mm/yyyy), all others still use the old one
further more only my app use the new format (dd/mm/yyyy), all others still use the old one
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
only your application will use this format now..dd/mm/yyyy
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try this,
CultureInfo ci = new CultureInfo("en-GB",true);
ci.DateTimeFormat.ShortDat ePattern = "dd/mm/yyyy";
Application.CurrentCulture = ci;
CultureInfo ci = new CultureInfo("en-GB",true);
ci.DateTimeFormat.ShortDat
Application.CurrentCulture
shilpa2784 ,
why didnt you bothered to change the variable name from my code ? (myc to ci)
why didnt you bothered to change the variable name from my code ? (myc to ci)
ASKER
wa
there are tons of ways,
thanks u very much
i'll try all of them
there are tons of ways,
thanks u very much
i'll try all of them
ASKER
hi, rama_krishna580
do you mean that your solution for web application
do you mean that your solution for web application