Origen: http://evoluted.net/archives/2004/12..._date_time.php
Código:
La llamada a la función la estoy haciendo:<% Function return_RFC822_Date(myDate, offset) Dim myDay, myDays, myMonth, myYear Dim myHours, myMonths, mySeconds myDate = CDate(myDate) myDay = WeekdayName(Weekday(myDate),true) myDays = Day(myDate) myMonth = MonthName(Month(myDate), true) myYear = Year(myDate) myHours = zeroPad(Hour(myDate), 2) myMinutes = zeroPad(Minute(myDate), 2) mySeconds = zeroPad(Second(myDate), 2) return_RFC822_Date = myDay&", "& _ myDays&" "& _ myMonth&" "& _ myYear&" "& _ myHours&":"& _ myMinutes&":"& _ mySeconds&" "& _ offset End Function Function zeroPad(m, t) zeroPad = String(t-Len(m),"0")&m End Function %>
Código:
El problema que tengo es que el servidor me devuelve la función en español, como:<%=return_RFC822_Date(FormatDateTime(RS("fecha")), "GMT")%>
<pubDate>sáb, 30 ago 2005 12:48:11 GMT</pubDate>, en lugar de hacerlo en inglés, que es como debe de estar:
<pubDate>Sat, 30 aug 2005 12:48:11 GMT</pubDate>
He intentado poner en el archivo un session.lcid = 1033 ó 2057, correspondientes respectivamente a USA y a UK, pero sigue mostrándola en español
¿Cómo hago para que me muestre la fecha en inglés?