LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Date Formatting Bug

Hi

The problem is regarding populating a cell with a date, from a textbox in a user form. I find that when populating dates (from a user form into a cell in Excel), the date format reverts to the American style e.g. mm/dd/yy. This occurs even when I specify date format as dd/mm/yy in the code AND on the spreadsheet. I have done a number of tests and found the problem to arises when the dd is 01, 02, 03.... up to 12. Therefore if the dd is up to 12, it reverts to the American format as it thinks it's a month. If the dd is 13 and over, it recognises that it can't be American and formats correctly to dd/mm/yy

Being in Australia DD/MM/YY is the preferred date format

Any suggestions why this may be happening and what could be done to fix it would be greatly appreciated.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Date Formatting MichaelR Excel Discussion (Misc queries) 4 June 23rd 08 03:34 PM
Formatting Date newguy Excel Discussion (Misc queries) 4 September 18th 06 01:49 PM
Date formatting help [email protected] Excel Discussion (Misc queries) 3 September 6th 06 12:45 AM
Date Formatting Neil Excel Discussion (Misc queries) 6 December 4th 04 06:57 PM


All times are GMT +1. The time now is 05:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"