date field behaviour

L

Long Nguyen

(outlook 2002, sp1)

In my custom form I created a date field with format hh:mm PM (that is
displaying only the time, not the date). When I entered 1700 (without . or
:) it displayed 8:00AM (instead of 5:00PM). Is this a bug or the way it
works?

(If I had . or :, e.g. 17:00 it converted to correct time of 5:00PM)

I did more investigation I found out that when 1700 was entered the field
had the year set to 1700 and time to 8:00AM. It seems that without the . or
: Outlook considered the value as the year. It seems that this is the way it
works.

Thks
Long
 
L

Long Nguyen

More on this - The start and end time fields in the Appoitment form seems to
work ok, ie. Outlook would convert a "1700" input to 5:00PM. I just wonder
how it is implemented. Any extra programming underneath is needed for this?
 
S

Sue Mosher [MVP-Outlook]

The date/time fields are all supposed to work with the same date logic, but your testing seems to indicate that is not in fact the case. I can't explain the discrepancy and can only suggest that you tell users to use 17:00, not 1700 unless they want to go back in time.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Long Nguyen

Thanks Sue.

Regards
Long
The date/time fields are all supposed to work with the same date logic, but
your testing seems to indicate that is not in fact the case. I can't explain
the discrepancy and can only suggest that you tell users to use 17:00, not
1700 unless they want to go back in time.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top