Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If Val(Date) <> Val(otherdate) Then
'Do Stuff
End
IF isDate(date) = True AND isDate(otherDate) = True Then
If Val(Date) <> Val(otherdate) Then
' do Stuff
end If
end If
Option Explicit
Private Const LOCALE_USER_DEFAULT = &H400
Private Const LOCALE_SSHORTDATE As Long = &H1F
Private Const LOCALE_SLONGDATE As Long = &H20
Private Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long
Private Sub Command1_Click()
Dim strFormat As String
Dim result As Long
result = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTDATE, strFormat, Len(strFormat))
strFormat = Space(result)
result = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTDATE, strFormat, Len(strFormat))
MsgBox Left(strFormat, result - 1)
strFormat = ""
result = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLONGDATE, strFormat, Len(strFormat))
strFormat = Space(result)
result = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLONGDATE, strFormat, Len(strFormat))
MsgBox Left(strFormat, result - 1)
End Sub