C
Colin Steadman
Just looking up a way to convert dates to Oracle format and found this
function in the forum:
<SCRIPT language="vbscript" runat="server">
Function ConvertToOracleDate(dtmDate)
If IsDate(dtmDate) Then
Dim arData(2)
arData(0) = Right("00" & Day(dtmDate),2)
arData(1) = UCase(MonthName(Month(dtmDate),True))
arData(2) = Year(dtmDate)
ConvertToOracleDate = Join(arData," ")
End If
End Function
</SCRIPT>
It works fine, but I cant understand why this line:
arData(0) = Right("00" & Day(dtmDate),2)
includes the "00" string in the right function. Does it serve some
purpose, or is it a mistake.
TIA,
Colin
function in the forum:
<SCRIPT language="vbscript" runat="server">
Function ConvertToOracleDate(dtmDate)
If IsDate(dtmDate) Then
Dim arData(2)
arData(0) = Right("00" & Day(dtmDate),2)
arData(1) = UCase(MonthName(Month(dtmDate),True))
arData(2) = Year(dtmDate)
ConvertToOracleDate = Join(arData," ")
End If
End Function
</SCRIPT>
It works fine, but I cant understand why this line:
arData(0) = Right("00" & Day(dtmDate),2)
includes the "00" string in the right function. Does it serve some
purpose, or is it a mistake.
TIA,
Colin