Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Strange French hour format

I have an Excel COM (actually .NET) add-in that I'm trying to adapt for an
international market. Part of its functionality is to display cell values
exactly as they appear in the Excel formula bar.

When testing with a French version of Excel and French locale settings, I'm
seeing a strange value for the hour format which so far has only appeared
when the cell value is midnight (00:00:00, or 12:00:00 AM in US format, or 0
in the default numeric format). It starts with "[$-F400]" when retrieved
with Excel.Application.ActiveCell.NumberFormat with a local "en-US" culture
setting, but I can't find any references to that format prefix online. The
full format is shown as "[$-F400]h:mm:ss AM/PM", although I'm not sure where
the AM/PM came from, since that cell was created with French culture
settings. Maybe it's the US settings I use to retrieve it?

Does anyone know what the [$-Fxxx] hour format prefix means and how to
interpret it? If so, I can look for it and display the time appropriately
(right now, midnight is displaying as 0). My guess is that it has something
to do with GMT, which is probably correct for my current Eastern US time zone
with Daylight Savings Time.

Another question is why it seems to be specific to time values of midnight,
at least in my testing so far.

Any help would be very much appreciated. Thanks in advance.

--
Terry Rochford
Reply
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
Text format for french date Elie Badra Excel Worksheet Functions 2 November 5th 08 07:24 PM
Converting from 12-hour to 24-hour format Nathan Excel Worksheet Functions 2 July 15th 08 03:51 PM
French format Daniel Excel Discussion (Misc queries) 3 November 18th 07 04:25 PM
How do I format numbers for French-style in Excel v.X for mac? JackOnAMac Excel Discussion (Misc queries) 1 May 14th 06 02:34 AM
TEXT function to format a date in English & French IanC Excel Worksheet Functions 2 December 16th 04 01:59 PM


All times are GMT +1. The time now is 07:41 PM.

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

About Us

"It's about Microsoft Excel"