|
Hello I have a simple script to output the date from a database to a webpage, I added a LCID value to it so the date would be in french format but unfortunately i need to remove the comma from it how can I do that?
Here is the code:
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function DoDateTime(str, nNamedFormat, nLCID)
dim strRet
dim nOldLCID
strRet = str
If (nLCID > -1) Then
oldLCID = Session.LCID
End If
On Error Resume Next
If (nLCID > -1) Then
Session.LCID = nLCID
End If
If ((nLCID < 0) Or (Session.LCID = nLCID)) Then
strRet = FormatDateTime(str, nNamedFormat)
End If
If (nLCID > -1) Then
Session.LCID = oldLCID
End If
DoDateTime = strRet
End Function
</SCRIPT>
<td width="110" class="table-qrcadet"> <%= DoDateTime((RsForms.Fields.Item("DateUpdated").Val ue), 1, 3084) %></td>
This is the format it comes out as:
1 mars, 2004
I need it to be in this format:
1 mars 2004 ----> no commas.
Thanks.
|