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.
Select Case Right(dayNum, 1)
Case "1"
txtNum = dayNum & "st"
Case "2"
txtNum = dayNum & "nd"
Case "3"
txtNum = dayNum & "rd"
Case Else
txtNum = dayNum & "th"
End Select
Public Function GetOrdinal(lngItem As Long) As String
Dim intOnesDigit As Integer
Dim strReturn As String
Dim intTemp As Integer
' All numbers 11-19 are "th"
intTemp = lngItem Mod 100
If intTemp >= 11 And intTemp <= 19 Then
strReturn = "th"
Else
' Get that final digit
intOnesDigit = lngItem Mod 10
Select Case intOnesDigit
Case 1
strReturn = "st"
Case 2
strReturn = "nd"
Case 3
strReturn = "rd"
Case Else
strReturn = "th"
End Select
End If
GetOrdinal = lngItem & strReturn
End Function