Click to See Complete Forum and Search --> : dd/mm/yyyy ?
tppradeep18
Aug 7th, 2000, 12:19 AM
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
How are you showing it? Are you using the format function?
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.
Try:
If Text1 Like "##/##/####" Then
Print "Format is correct"
Else
Print "Format is incorrect"
End If
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.