Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format date as dd.mm.yyyy

Status
Not open for further replies.

rastkocvetkovic

Programmer
Aug 11, 2002
63
SI
How to do that. My experience show that the type of output depends on ODBC version of Access driver.

The following function (FormatDateTime)...
<%
response.write(FormatDateTime(date(),vbgeneraldate))
%>
... isn't appropriate due to the fact that it doesn't switch day and month at all.

Is there any other option but parsing?

 
No there isn't!

you can do:

response.write datepart(&quot;d&quot;,date()) & &quot;.&quot; & datepart(&quot;m&quot;,date()) & &quot;.&quot; & datepart(&quot;yyyy&quot;,date())

The above will give you dd.mm.yyyy &quot;did you just say Minkey?, yes that's what I said.&quot;

MrGreed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top