|
-
Aug 7th, 2000, 12:19 AM
#1
Thread Starter
Lively Member
i have created an application which displays date in dd/mm/yyyy format. the machine in which the application is installed is being used by more than one use so that different date formats are set for each individual when they login with their user id and password. how can i check whether the date is in dd/mm/yyyy format. i should also be able to change the format to dd/mm/yyyy. anybody to help me?
Thanx
-
Aug 7th, 2000, 02:50 AM
#2
How are you showing it? Are you using the format function?
Code:
fdate = Format$(Date, "d mm yyyy") 'Returns 7 08 2000
'or
fdate = Format$(Date, "d m yyyy") 'Returns 7 8 2000
For more information on the Format function, look in your VB Help File.
-
Aug 8th, 2000, 07:55 PM
#3
Try:
Code:
If Text1 Like "##/##/####" Then
Print "Format is correct"
Else
Print "Format is incorrect"
End If
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
|