K
kiwijo
have created an app in ASP which prints out timeclock events. It also
saves them to an excel file. Problem is the dates are displayed
correctly on screen and in the printout, however, any date in 2004 is
displayed as mm/dd/yyyy. All dates for 2003 were displayed as per my
locale dd/mm/yyyy.
Changing the following code to use long date format has been the only
solution so far, but I need to use short date format of dd/mm/yyyy.
Response.write "objXLSheet.Range(""" & strColumnVal & intCounter &
""").NumberFormat = ""dd/mm/yyyy"";"
Response.Write "objXLSheet.Range(""" & strColumnVal & intCounter &
""").Value = '" & FormatDateTime(escapeQuote(objRSRetrieve(strRecSetID)),
vbShortDate) & "';"&vblf
saves them to an excel file. Problem is the dates are displayed
correctly on screen and in the printout, however, any date in 2004 is
displayed as mm/dd/yyyy. All dates for 2003 were displayed as per my
locale dd/mm/yyyy.
Changing the following code to use long date format has been the only
solution so far, but I need to use short date format of dd/mm/yyyy.
Response.write "objXLSheet.Range(""" & strColumnVal & intCounter &
""").NumberFormat = ""dd/mm/yyyy"";"
Response.Write "objXLSheet.Range(""" & strColumnVal & intCounter &
""").Value = '" & FormatDateTime(escapeQuote(objRSRetrieve(strRecSetID)),
vbShortDate) & "';"&vblf