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 derfloh 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
Joined
Aug 11, 2002
Messages
63
Location
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
 
thread333-395738

further info on this A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top