Article ID: 102045 - Last Review: August 16, 2005 - Revision: 2.1 DOC: FORMAT$ Dates mm/dd/yy Gives MM-DD-YY in VB for MS- DOSThis article was previously published under Q102045 SUMMARY
The 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 INFORMATION
When 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:
FORMAT$ Expression Display ' Will Display ------------------ ------------- ' ------------- m/d/yy 12/7/58 ' 12-7-58 m/d/yy h:mm 12/7/58 20:50 ' 12-7-58 20:50 APPLIES TO
| Article Translations
|

Back to the top
