Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I am facing one problem in Microsoft excel sheet, The problem occurs only when i change my computers region & Language format as "Danish(Denmark)" Control Panel->Region&Language->Format->(select Danish(Denmark))

After changing region & language format,

1)open Microsoft excel workbook sheet,
2)select anyone column and right click and select Format Cells,
3)here choose Date option with type as (14-03-2001) which was placed under Number tab.
4)then click ok.

now enter the value "10-Mar-2014", it will be converted into 10.03.2014.
but its not converting for MAY and OCT months.

can anyone tell the reason for why this is not happening for MAY & OCT months?
Posted

The date format will use the abbreviated month names for the selected culture. Looking at the Danish month names, it would seem that the abbreviation for every month except May and October is the same as the English equivalent:
  • January -> Januar (JAN)
  • February -> Februar (FEB)
  • March -> Marts (MAR)
  • April -> April (APR)
  • May -> Maj (MAY / MAJ)
  • June -> Juni (JUN)
  • July -> Juli (JUL)
  • August -> August (AUG)
  • September -> September (SEP)
  • October -> Oktober (OCT / OKT)
  • November -> November (NOV)
  • December -> December (DEC)


Try using the correct abbreviated month names for the language:
10-Maj-2014 -> 10.05.2014
10-Okt-2014 -> 10.10.2014
 
Share this answer
 
Comments
jaket-cp 25-Nov-14 3:58am    
genius
Looks like a bug, report it to Microsoft.
 
Share this answer
 
v2
Comments
Richard Deeming 24-Nov-14 11:47am    
I don't think it's a bug that a system set to Danish won't recognise a date using an English month name. :)
Richard MacCutchan 24-Nov-14 11:52am    
Good point.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900