06-06-2005, 10:29
|
|
|
חבר מתאריך: 03.06.05
הודעות: 5
|
|
שינוי פורמט תאריך ב -ASP
יש לי בסיס נתוני ACCESS ואני שולף רשומה בה יש תאריך
כאשר אני רוצה להציג את התאריך הזה אני מקבל אותו בפורמט הלא נכון.
התאריך מוצג בפורמט: mm/dd/yyyy
אני רוצה להציג את התאריך בפורמט: dd/mm/yyyy
איך אני משנה את הפורמט ?
זה הקוד שלי:
קוד:
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open connectionstring
mySQL = "select * from date_table where ID = 36;"
Set RS = Server.CreateObject( "ADODB.Recordset" )
RS.Open mySQL, Con, adOpenStatic, adLockOptimistic
if not RS.EOF then
Response.Write RS("theDate")
else
Response.Write "01/01/2001"
end if
RS.Close
Set RS = Nothing
con.Close
set con = nothing
|