The information in this article applies to:
SUMMARYThe FORMAT$ function uses the date separator as defined by the current country setting in MS-DOS. In the USA, that means it uses the dash or hyphen character (-) when printing dates instead of the forward slash '/'. MORE INFORMATIONWhen printing date information, the FORMAT$ function replaces the slash '/' with the current country setting for the date separator. In the USA, the default MS-DOS date separator is the dash (-). Here's an example:
You can force FORMAT$ to use the slash (/) by preceding it with a
backslash (\). Here's an example:
The Visual Basic for MS-DOS Help file topic 'Sample Date and Time Formats'
shows the following example, which is incorrect for the USA:
To display the expected date format, use the backslash (\) in conjunction
with the forward slash (/). The backslash is an operator that displays the
next character in a format string.
Additional query words: Vbmsdos kbVBp100
Keywords : kbdocfix |
Last Reviewed: May 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |