In that link you will find the Vbscript functions for time and date handling in ASP Classic.
To solve your problem first you will take the current system date and time and put in a variable data
and another time
.
<%
Rem essas variáveis já deve ter sido declaradas em seu código
Rem fica apenas como parte do exemplo
dim data
dim hora
data = Now
hora = Time
%>
Then use the functions Year(data)
to extract the year, Month(data)
to extract the month and Day(data)
to extract the day and mount the sentence according to your need.
<%
response.write("<news:publication_date>" & Year(data) & "-" & Month(data)& "-" & Day(data) & "T" & hora & "-03:00" & "</news:publication_date>")
%>
You want to concatenate the fields ?
concat
don’t suit you ? Add to question what you have tried for this problem.– 8biT
Concatenate is the least, how to transform date and time, are in separate fields, in string, and displayed in Brazilian standard for fields in American standard, as is the question.
– Rod
string data = Convert.Todatetime("2019-02-19T19:18:20-03:00"). Tostring("dd/MM/yyyy") - Try this after making a Concat in the fields. Wouldn’t solve your problem?
– Leonardo Buta
is Asp 3. Asp classic
– Rod
@Leonardol updated the question, I think it’s now clearer.
– Rod
ASP Classic is without . NET? Relying only on Vbscript objects?
– Augusto Vasques
yes. Asp 3 sheep Asp vab
– Rod