|
-
Oct 10th, 2000, 05:26 AM
#1
Thread Starter
Member
Pls answer me, how can i SET to long date fomat the date settings in regional settings? i want that when my form loads, it automatically change the date settings in the regional settings to long date format
-
Oct 10th, 2000, 05:33 AM
#2
Lively Member
If your talking about changing the systems date format rather than a single date, then you can change it via the registry..
HKEY_CURRENT_USER\Control Panel\International\sLongDate
HKEY_CURRENT_USER\Control Panel\International\sShortDate
I think one some OS (maybe Win 95) these keys don't exist, however you can change the entries in the win.ini file.
What is it your trying to do exactly, I've got some good code for changing dates from one format to another, so you won't have to change the format in the regional settings.
-
Oct 10th, 2000, 06:20 AM
#3
_______
<?>
Code:
'change the date
Private Sub Command1_Click()
Dim MyDate
MyDate = "09/20/2000" ' Assign a date.
Date = MyDate ' Change system date.
End Sub
'change the system time
'it changes it on the system but you
'must click on the time in the system tray
'and then it refreshes the system tray.
Private Sub Command1_Click()
Dim MyTime
MyTime = "09:00:10 PM" ' Assign a time."
Time = MyTime ' Set system time to MyTime.
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|