modifying date seperators



Big Guy
07-10-2005, 12:23 AM
Is there a registry edit that I can use to change the regional date seperator
format from / or - or . to none. As an example 05152005. There are some new
standards for check printing that require no seperators for scanning
purposes. I have found the $date setting where it defaults to the seperator
specified in the regoinal settings in the control panel, but leaving it blank
does not change the default.

Thanks

Pegasus \(MVP\)
07-10-2005, 12:23 AM
"Big Guy" <BigGuy@discussions.microsoft.com> wrote in message
news:E41617A6-328C-4A41-8EDB-266DC99347CE@microsoft.com...
> Is there a registry edit that I can use to change the regional date
seperator
> format from / or - or . to none. As an example 05152005. There are some
new
> standards for check printing that require no seperators for scanning
> purposes. I have found the $date setting where it defaults to the
seperator
> specified in the regoinal settings in the control panel, but leaving it
blank
> does not change the default.
>
> Thanks

I suspect that the format may be set by the application
you use to print checks. What is it? Did you have a
look at its configuration settings?

Big Guy
07-10-2005, 12:23 AM
I am sure that newly written software might be able to solve the problem, but
to use the existing software in the intrem requires a work around for older
software. The regoinal settings would work if I can remove the seperator. It
has to be a registry hack.
Alan MCSE

Torgeir Bakken \(MVP\)
07-10-2005, 12:23 AM
Big Guy wrote:

> Is there a registry edit that I can use to change the regional date seperator
> format from / or - or . to none. As an example 05152005. There are some new
> standards for check printing that require no seperators for scanning
> purposes. I have found the $date setting where it defaults to the seperator
> specified in the regoinal settings in the control panel, but leaving it blank
> does not change the default.
Hi,

Put the VBScript below in a .vbs file and run it and see if it helps.

'--------------------8<----------------------
sRegKey = "HKEY_CURRENT_USER\Control Panel\International\"
oShell.RegWrite sRegKey & "sShortDate", "ddMMyyyy", "REG_SZ"

' You might need to enable the line below as well (by
' removing the ' character)
'oShell.RegWrite sRegKey & "sDate", "", "REG_SZ"

MsgBox "Finished!", vbInformation + vbSystemModal, _
"Date format update"
'--------------------8<----------------------


WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


modifying date seperators