Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > FormatDateTime

Reply
Thread Tools

FormatDateTime

 
 
Sune
Guest
Posts: n/a
 
      06-22-2005
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


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      06-22-2005
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.


 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      06-22-2005
"Sune" <> wrote in message
news: 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?




 
Reply With Quote
 
Sune
Guest
Posts: n/a
 
      06-22-2005
> 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


 
Reply With Quote
 
Sune
Guest
Posts: n/a
 
      06-22-2005
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FormatDateTime David C ASP .Net 2 10-17-2007 01:52 PM
FormatDateTime question fiefie.niles@gmail.com ASP General 2 04-07-2007 04:33 PM
FormatDateTime question fiefie.niles@gmail.com ASP General 0 04-06-2007 11:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57