Unclear. What do you have . A string ?
For now I'm not sure if :
- you want to convert a MM/dd/yyyy string to a date
- or if you already have a date that is displayed as MM/dd/yyyy in which
case you don't have to convert it. You can display the same date in whatever
format you want (ASP.NET uses be default the globalization seetting in the
web.config file to which country convention a Date should be displayed).
A date in DateTime format doesn't have a dd/MM/yyyy format or any other
dispaly format i.e. the internal representation of a date is always the
same. The issue is that when the value of a date is displayed each country
may have its own convention...
---
Patrice
"Ashraf Ansari" <ge********@rediffmail.coma écrit dans le message de news:
%2****************@TK2MSFTNGP05.phx.gbl...
Hi,
How Can I convert MM/dd/yyyy format into dd/MM/yyyy and the date
which is converted into dd/MM/yyyy should be in DateTime format. I do
not want to store it as a string.
Please help
Thanks in advance
*** Sent via Developersdex http://www.developersdex.com ***