473,480 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

FormatDateTime

Hi,

Is there any way to define the default date/time format, instead of having
to format every single time you print a date/time?

Thanks
--
Regards,
Sune
Jul 22 '05 #1
4 2050
"Sune" <ds*******@vip.cybercity.NOSPAMdk> wrote in message
news:20***********************@dreader.cybercity.d k...
Hi,

Is there any way to define the default date/time format, instead of having
to format every single time you print a date/time?

Thanks
--
Regards,
Sune

Why? Because
<%=FormatDateTime(Now,0)%>
takes longer to type than
<%=Now%>

Or do you mean something else?


Jul 22 '05 #2
Sune wrote:
Hi,

Is there any way to define the default date/time format, instead of
having to format every single time you print a date/time?

Default formats are defined in the Regional Settings applet from the control
Panel. What's tricky is that asp runs under the IUSR account, so you have to
log in under that account in order to adjust the settings for that account.
Here's some more information:
http://www.aspfaq.com/show.asp?id=2260
http://www.aspfaq.com/show.asp?id=2313
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #3
> Why? Because
<%=FormatDateTime(Now,0)%>
takes longer to type than
<%=Now%>
Or do you mean something else?

In general, i would rather have it defined in my config than have to use
FormatDateTime constantly :/
--
Regards,
Sune
Jul 22 '05 #4
> Here's some more information:
http://www.aspfaq.com/show.asp?id=2260
http://www.aspfaq.com/show.asp?id=2313

Thank you, I'll have a look at those articles.
--
Regards,
Sune
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7811
by: Jay | last post by:
I previously posted this question under Visual Basic newsgroup, but was advised to re-post here. I'm hoping someone can help me solve an issue I'm having with VB.Net and Access 2000. Here's...
6
1642
by: Thomas Scheiderich | last post by:
I have the following page as test.aspx: *************************************************** <html> <head> <title>Hello and Welcome Page</title> </head> <body> <center> <% Dim CurrentDate As...
12
3826
by: DC Gringo | last post by:
How can I convert this pubLatest to a date with format "m/d/yyyy"? Dim pubLatest As New Date pubLatest = Me.SqlSelectCommand1.Parameters("@pubLatest").Value -- _____ DC G
10
3551
by: John K | last post by:
I recently took a job doing PHP but come from an ASP background. I'm trying to find a conversion equivalent for VBScript's "formatdatetime". All I want to do is convert a MySQL datetime field...
5
3715
by: John K | last post by:
I posted on this a week or so ago and found a resolution in that instance by using DATE_FORMAT in my sql string to display the format I was looking for. This time I need to format the date going...
2
9801
by: fiefie.niles | last post by:
I set my computer Regional Setting (Control Panel - Regional and Language Options - Customize - Date) to dd/mm/yy. In my ASP page I do the following: FormatDateTime("1/20/07",2) and it...
1
12869
by: nitinkeser | last post by:
how i convert date into specific format in asp? like in date format 'Jun 17, 2007' ?
2
4474
by: David C | last post by:
I have a web page field formatted with FormatDateTime(mydate,2) and when the column is NULL the report shows 1/1/0001 Thanks David
1
3524
by: janetopps | last post by:
This is an asp page which adds a template to a mysql database. it returns this error Microsoft VBScript runtime error '800a000d' Type mismatch: 'FormatDateTime' /temps.asp, line 111
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.