codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:

Home » ASP » Article

ASP Format Date and Time Script

Article by:  Jeff Anderson  ( 1362 ) (2/27/2002)
Bookmark us now! Add to Favourites
Email a friend!Tell a friend
Summary: An ASP script showing the variety of date and time formats possible using the FormatDateTime Function.
Viewed: 730365 times Rating (214 votes): 
 4.3 out of 5
 Rate this Article  Read Comments  Post Comments


ASP has a very handy inbuild function called FormatDateTime().

Let's start with the now() function to get the current date and time into a variable


<% 
dim todaysDate
 todaysDate=now()
 
%>


Now we can use the FormatDateTime function to format our date variable in a variety of ways.

First let's see how todaysDate appears :


<% 
Response.write todaysDate
 
%>


RESULT: 5/17/2012 1:49:30 AM

Using 0 - the vbGeneralDate format creates a date as short date (if included), and time as long time.




<% 
Response.write FormatDateTime(todaysDate,0)

 
%>


RESULT: 5/17/2012 1:49:30 AM

Using 1 - the vbLongDate shows the date as long date




<% 
Response.write FormatDateTime(todaysDate,1)

 
%>


RESULT: Thursday, May 17, 2012


Using 2 - the vbShortDate shows the date as short date




<% 
Response.write FormatDateTime(todaysDate,2)

 
%>


RESULT: 5/17/2012


Using 3 - the vbLongTime format shows the time as long time .




<% 
Response.write FormatDateTime(todaysDate,3)

%>


RESULT: 1:49:30 AM


Using 4 - the vbShortTime format creates the current time in 24 format (hh:mm)




<%
Response.write FormatDateTime(todaysDate,4)

 
%>


RESULT: 01:49




International Date and Time

You can use the session.lcid property to change the formatting of the date and time.

For example
<%session.lcid=2057%>
will set the date and time to UK format (DD/MM/YYYY instead of MM/DD/YYYY ) Here's a list of international locales. Bear in mind that setting these will also change currency formatting.

Locale ID (LCID) Description
1033 General Unicode
33280 Binary Order
1027 Catalan
197636 Chinese Bopomofo (Taiwan)
2052 Chinese Punctuation
133124 Chinese Stroke Count
1028 Chinese Stroke Count (Taiwan)
1050 Croatian
1029 Czech
1043 Dutch
1061 Estonian
1036 French
66615 Georgian Modern
1031 German
66567 German Phone Book
1038 Hungarian
66574 Hungarian Technical
1039 Icelandic
1040 Italian
1041 Japanese
66577 Japanese Unicode
1042 Korean
66578 Korean Unicode
1062 Latvian
1063 Lithuanian
1071 FYRO Macedonian
1044 Norwegian/Danish
1045 Polish
1046 Portuguese
1048 Romanian
1051 Slovak
1060 Slovenian
1034 Spanish (Traditional)
3082 Spanish (Spain)
1053 Swedish/Finnish
1054 Thai
2057 UK English
1058 Ukrainian
1066 Vietnamese



Adding and Subtracting Dates and Times

For more information about adding and subtracting dates and times, see our ASP DateAdd article.





CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'ASP Format Date and Time Script'
Posted by :  Sanjay at 13:28 on Sunday, September 21, 2003
It's great to be here to find every code u require. i wish u people all best
for the future.

It's my one source for solution : codetoad
Posted by :  Nazish at 19:03 on Wednesday, November 05, 2003
This is Great effort For creating This Code and this code enhance the ASP Techninques.
So Again this is great effort.
Posted by :  itus2006 at 21:45 on Sunday, December 28, 2003
thanks
Posted by :  dubzap at 08:37 on Saturday, March 20, 2004
Let me start with complimenting you with this great site!

I have a site where people can enter data and change them later.
One of the things that they enter is a (release)date. The format is dd-mm-yyyy (Dutch). However, somehow the server (I think it's the server...) turns it into mm-dd-yyyy. This happens only when the original day is less than 13. When i enter 13-5-2004, nothing happens. when i enter 12-5-2004 the result is 5-12-2004.

What is the solution?

thanks
Jos
Posted by :  tierneyj at 03:53 on Wednesday, July 07, 2004
I too have the issue using MS Frontpage 2000 where a user enters a date of dd/mm/yyyy and this gets posted to my MS Access database as mm/dd/yyyy, I see in your article that you mention the code '<%session.lcid=2057%>' where and how can this be used to resolve my issue? Many thanks....a tired and worn out user....
Posted by :  amoldalvi at 05:55 on Friday, July 16, 2004
Very good coding.......
Posted by :  s13khan at 11:49 on Thursday, February 10, 2005
Candle in the darkness of load-sheding...... huuh hhuuh hhaaaaah !

Very nice and simple also. Great Job. I Found very fruitful as soon as I found it......
Posted by :  elshibiny at 09:10 on Thursday, July 14, 2005
I have tried the <%session.lcid=2057%> but it didn't work. Please anyone tells me how to apply it?
Posted by :  PakXoxer at 01:05 on Monday, August 08, 2005
please those who have successfully used the code for
formating date as DD/MM/YYYY plz tell us how and where to
apply that <%sesssion.lcid=2057%> will be used.

thanks
Posted by :  ronb722 at 11:58 on Monday, October 10, 2005
Hi all,
Please forgive my ignorance, but I am new to the .NET world and am trying to format the output of my data grid. Currently it is showing date and time and I only want to see the date. How can I do this?

Thanks,
Ron
Posted by :  badrinath_subudhi at 22:13 on Monday, March 20, 2006
how to find the date format in dd-mmm-yyyy format ?
Posted by :  pranav121 at 22:24 on Thursday, February 01, 2007
<%sesssion.lcid=2057%> and conver functions

It did worked for few days and then it was showing me some error informing "Arithmatic conversion error......."
Still trying to figure out the issue.

I was using nvarchar to store date value in to datbase and than was using convert function as below
convert(datetime, columnname, 131) to convert to uk format.

of someone knows the resulution, plz advise me.
Posted by :  tenshi at 02:38 on Wednesday, April 18, 2007
First of all, thanks for posting a very helpful article Ü

Secondly, can you pls help me with this one..

We are currently supporting an old application using Win NT 4.0, Oracle 8i, MTS/IIS, and ASP.
During run-time, most of our pages has a textbox where it displays the current system date (default format is mm/dd/yyyy) on form load. Lately, there are times that it displays an invalid date format such as 04/11/197 or 04/11/07. As an immediate solution , we just restart the production server. This is an intermittent error and we cannot replicate it in our test server.

Do you have any idea why it happens?

thanks in advance Ü

Posted by :  rizwanbhutta at 03:56 on Friday, December 07, 2007
Hello
first of all thank you for comments, here are many question regarding date formating, but have no answers on this site, so i have decided to put the answers of similar questions on this site.
Question By dubzap
Answer
first of all put this statement <%session.lcid=2057%> top of your page then create a database field with settings "date/time" then try to dates and print on you page and see the result.

a similar example of this code i have put on a site where from you can check by adding removing and editing dates , the link is as
http://www.australiantalentdirectory.com/mydate
if you have any problem , you are welcome to ask at the address of webmaster@australiantalentdirectory.com
Regards
Posted by :  jn1512 at 09:55 on Thursday, March 06, 2008
I maintain a site that features Classical Music composers, many of which lived hundreds of years ago (Mozart, Beethoven, Haydn, etc.)

Has anyone encountered trouble formatting dates prior to 1750?

When I have dates from 1750 or before, the year displays properly but often the month or days are innacurate from what is in my database.

Any suggestions?
Posted by :  zero at 11:43 on Thursday, November 06, 2008
Español:

Para los que tienen el problema del formato de la fecha.

Intenten esto:

<%
Datemmddyyyy=Now()
Dateddmmyyyy=month(Datemmddyyyy)&"/"&day(Datemmddyyyy)&"/"&year(Datemmddyyyy)&" "&FormatDateTime(Datemmddyyyy,3)
%>

Cambiara el formato de esto MM/DD/YYYY a esto DD/MM/YYYY.

Suena raro pero funciona =).


English:

To anyone that has the format date trouble.

Try this:

<%
Datemmddyyyy=Now()
Dateddmmyyyy=month(Datemmddyyyy)&"/"&day(Datemmddyyyy)&"/"&year(Datemmddyyyy)&" "&FormatDateTime(Datemmddyyyy,3)
%>

Will change the format from this MM/DD/YYYY to this DD/MM/YYYY.

sounds weird but it works =).

Posted by :  jeremybme at 16:51 on Wednesday, February 18, 2009
is there a way to format a date time like this

YYYYMMDDHHMMSS

with nothing between and making sure that its military time, and that hours, months days, seconds always have 2 digits?

Thanks
Posted by :  enginoren at 06:32 on Thursday, February 04, 2010
Hi,

Great article Jeff...

The only thing that does not fit me (and some others) is; session.lcid only sets the displaying format. but what about the data in the table itself? even when i display the data as DDMMYYY, the date is inserted to the table as MMDDYYYY format.
any way to write the data in DDMMYYYY format ?
Posted by :  didihh at 10:24 on Sunday, May 30, 2010
Hello,

M

How are you doing? Hope you are alright.

Last week, I bought Many items.

it is very cheap and I get it in 5 days. The quality is very good.

The site also sell Sneakers, handbag, purse, jeans, sunglass, hat and so on.

I never forget to share good things with friends.

So,if you are interested in it, you can have a look.

I think you will get some surprise.

This is their : www.newgoing.com
Posted by :  wholesalegoods at 11:03 on Tuesday, July 05, 2011

welcome to our website:

------- http://www.tradetrusting.com --------

if you like to order anything you like.

More details,

please just browse our website Quality is our Dignity;

Service is our Lift.

enjoy yourself.

thank you!!

------- http://www.tradetrusting.com -----
Posted by :  kaikaiee at 22:21 on Wednesday, July 06, 2011
welcome to our websit:...
╭══════════════╮
..... http://www.voguecatch.us ...
╰══════════════╯
Wow! This site:
Both cheaper and fashion, and good products.
Purchase will have small gift to send.
http://www.voguecatch.us was a good site.
Like this discovery.
... http://www.voguecatch.us ......
***★Nike☆jordan s-h-o-e-s $30--35★***
****☆ Best online store ☆****
******(U-G-G)*******
... http://www.voguecatch.us .....
....Welcome you to visit thanks..
Posted by :  tolon at 09:14 on Thursday, July 28, 2011
Wonderful.

Share a website with you ,

put this url in google sirch

( http://www.yessoso.com/ )

Believe you will love it.

We accept any form of payment.
Posted by :  meimeikk at 07:32 on Wednesday, August 03, 2011
Hello, everybody, the good shoping place, the new season approaching, click in.
Welcome to http://www.proxy4biz.com
Air Jordan (1-24) shoes $35
UGG BOOT $50
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $35
T-shirts (polo, ed hardy, lacoste) $16
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Bikini (Ed hardy, polo) $18
FREE SHIPPING
http://www.proxy4biz.com

http://www.proxy4biz.com

http://www.proxy4biz.com

http://www.proxy4biz.com

http://www.proxy4biz.com

http://www.proxy4biz.com
Posted by :  j298719302 at 08:40 on Monday, August 08, 2011
http://www.goelectronstore.com

Apple mac books: 280- 520 USD

Iphone 4: 260 USD

Ipad 2 64gb wifi 3G : 330 USD

New Ipod touch 64gb: 120 USD

Dell Alienware M17x: 700 USD

Dell Alienware M15x: 500 USD

MacBook Pro MC024 LL/A 17-inch 2.66GHz Intel Core i7: 510 USD

MacBook Pro MC373 LL/A15.4-inch 2.66GHz Intel Core i7: 485 USD

BlackBerry Pearl 3G 9105: 350 USD

Nikon F 6 SLR camera - 35mm: 685 USD

Nikon D3000 (with 18mm-55mm and 55mm-200mm lens): 315 USD

Nikon D3X : 985 USD

Canon EOS 5D Mark: 565 USD

Playstation 3 PS3 Metal Gear Solid 4 80GB Bund: 220 USD

Free shipping , P A Y P A L accepted! Fast and door to door delivery! If necessary, please

http://www.goelectronstore.com
Posted by :  wanglixia at 01:55 on Thursday, September 08, 2011
Good news: this website (======= [url=http://www.yessoso.com]http://www.yessoso.com[/url]/ =======) we has been updated and add products and many things they abandoned their increases are welcome to visit our website. Accept cash or credit card payments, free transport. You can try oh.
Posted by :  sonakin4 at 00:09 on Tuesday, September 20, 2011
Candle in the darkness of load-sheding...... huuh hhuuh hhaaaaah !

Very nice and simple also. Great Job. I Found very fruitful as soon as I found it......

http://dehumidifiers-forhome.com/
http://www.life-fitness.net
http://www.aboveground-pools.net

<Added>

http://dehumidifiers-forhome.com/
http://www.life-fitness.net
http://www.aboveground-pools.net
Posted by :  zhangq at 08:53 on Sunday, October 30, 2011
Hello, everybody, the good shoping place, the new season approaching, click in.
Welcome to http://www.luckygrip.com
Air Jordan (1-24) shoes $35
UGG BOOT $50
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $35
T-shirts (polo, ed hardy, lacoste) $16
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Bikini (Ed hardy, polo) $18
FREE SHIPPING
http://www.luckygrip.com

http://www.luckygrip.com

http://www.luckygrip.com

http://www.luckygrip.com

http://www.luckygrip.com

http://www.luckygrip.com
Posted by :  ptddd at 19:59 on Sunday, November 20, 2011
Whereas the most recent winter Moncler Online Store for females or males have abruptly come into trend, gentlemen were in no way deprived of looking at Moncler Mens Coats go out of trend. In reality, men’s suits likewise have gone through great modification specifically in their models. Apart from Moncler Women Jackets, modern day fabric can now be adaptable in various New Moncler Down Jackets, which inturn permits tailors to make up special models. Discount Moncler Mens are the years where exactly the jaded dark-colored suit was the greatest in men’s vogue http://www.monclermenstore.com/.
Posted by :  zzxxmm at 09:23 on Tuesday, November 22, 2011
Tell you a big news!
====== http://www.cc2biz.com ======
Wholesale(Or Retail) cheap Ugg,Jerseys,Nike, air Jordan fusion, bbc, Evisu, crocodile, ed hardy, polo, t-shirt, lacoste, bape, louis vuitton, chanel, handbag, fendi, Versace, GUCCI, lv, Ladies, Handbags, DB, MIUMIU.etc.
====== http://www.cc2biz.com ======

Air max,Shox,Tn,Dunk,AF1 (1-24)shoes $35

Handbags(Coach l v f e n d i d&g) $35

Tshirts (Polo ,ed hardy,lacoste) $15

Jean(True Religion,ed hardy,coogi) $30

Sunglasses(Oakey,coach,gucci,A r m a i n i) $15

New era cap $12

Bikini (Ed hardy,polo) $20

Accept Credit card

Business with this site now,You can earn more money and enjoy your shopping life

====== http://www.cc2biz.com ======
Posted by :  aommhh at 10:04 on Wednesday, December 21, 2011
Hello, everybody, the good shoping place, the new season approaching, click in. Welcome to ==== http://www.top4biz.com ==
Air Jordan (1-24) shoes $35
Jordan (1-22)&2009 shoes $45
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $30
T-shirts (polo, ed hardy, lacoste) $14
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Bikini (Ed hardy, polo) $18
FREE SHIPPING
http://www.top4biz.com
Posted by :  aommhh at 10:29 on Wednesday, December 21, 2011
Hello, everybody, the good shoping place, the new season approaching, click in. Welcome to ==== http://www.top4biz.com ==
Air Jordan (1-24) shoes $35
Jordan (1-22)&2009 shoes $45
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $30
T-shirts (polo, ed hardy, lacoste) $14
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Bikini (Ed hardy, polo) $18
FREE SHIPPING
http://www.top4biz.com
Posted by :  hingfing at 07:03 on Thursday, February 16, 2012
Hello, everybody, the good shoping place, the new season approaching, click in. Welcome to ==== http://www.proxy4biz.com ==
Air Jordan (1-24) shoes $35
Jordan (1-22)&2009 shoes $45
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $30
T-shirts (polo, ed hardy, lacoste) $14
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Biki ni (Ed hardy, polo) $18
FREE SHIPPING
http://www.proxy4biz.com

http://www.proxy4biz.com

http://www.proxy4biz.com

http://www.proxy4biz.com

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===
Posted by :  hingfing at 07:05 on Thursday, February 16, 2012
Hello, everybody, the good shoping place, the new season approaching, click in. Welcome to ==== http://www.proxy4biz.com ==
Air Jordan (1-24) shoes $35
Jordan (1-22)&2009 shoes $45
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $30
T-shirts (polo, ed hardy, lacoste) $14
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Biki ni (Ed hardy, polo) $18
FREE SHIPPING
http://www.proxy4biz.com


http://www.proxy4biz.com

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===

===( http://www.proxy4biz.com )===
This is a shopping paradise
We need your support and trust!
Posted by :  mingmm at 06:37 on Saturday, February 18, 2012

Hello, everybody, the good shoping place, the new season approaching, click in.
Welcome to ==== http://www.fashion-long-4biz.com ==
Air Jordan (1-24) shoes $35
Jordan (1-22)&2009 shoes $45
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $30
T-shirts (polo, ed hardy, lacoste) $14
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Biki ni (Ed hardy, polo) $18
FREE SHIPPING

http://www.fashion-long-4biz.com

http://www.fashion-long-4biz.com


http://www.fashion-long-4biz.com
http://www.fashion-long-4biz.com

http://www.fashion-long-4biz.com
http://www.fashion-long-4biz.com

http://www.fashion-long-4biz.com


http://www.fashion-long-4biz.com
http://www.fashion-long-4biz.com

http://www.fashion-long-4biz.com
Posted by :  fdhgfjhhkhj at 08:50 on Saturday, February 25, 2012
Hello, everybody, the good shoping place, the new season approaching, click in.
Welcome to http://www.flying4biz.com
Air Jordan (1-24) shoes $35
UGG BOOT $50
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $35
T-shirts (polo, ed hardy, lacoste) $16
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Bikini (Ed hardy, polo) $18
FREE SHIPPING
http://www.flying4biz.com
http://www.flying4biz.com
Posted by :  fdhgfjhhkhj at 08:50 on Saturday, February 25, 2012
Hello, everybody, the good shoping place, the new season approaching, click in.
Welcome to http://www.flying4biz.com
Air Jordan (1-24) shoes $35
UGG BOOT $50
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $35
Handbags ( Coach Lv fendi D&G) $35
T-shirts (polo, ed hardy, lacoste) $16
Jean (True Religion, ed hardy, coogi)$34
Sunglasses ( Oakey, coach, Gucci, Armaini)$15
New era cap $16
Bikini (Ed hardy, polo) $18
FREE SHIPPING
http://www.flying4biz.com
http://www.flying4biz.com
Posted by :  dcfdcfdcf at 06:33 on Monday, March 05, 2012
http://www.crazy-jerseys.com/
A leading worldwide wholesale company (or ucan say organization). We supply more than 100 thousand high-quality merchandise and famous brand name products all at wholesale prices.
Big News:Good shopping(Wholesale and Retail,You can buy and sell) site for you!!!
Air Jordan (1-24) shoes $33
UGG BOOT $50
Nike shox (R4, NZ, OZ, TL1, TL2, TL3) $33
Handbags ( Coach Lv fendi D&G) $36
T-shirts (polo, ed hardy, lacoste) $16
Jean (True Religion, ed hardy, coogi)$30
Sunglasses ( Oakey, coach, Gucci, Armaini)$16
New era cap $16
ATO shoes $42
Gucci shoes $42 ,prada shoes $40
NBA jerseys $33 ,NHL jerseys $29
YSL shoes $85
Bikini (Ed hardy, polo) $18
Accept paypal payment, accept Credit card payments, electronic check payments.
FREE SHIPPING
===== http://www.crazy-jerseys.com ====
Posted by :  hbkhjkhjkhjk at 08:42 on Monday, March 26, 2012


====== http://www.clothes8.org ======

Air jordan(1-24)shoes $30

Handbags(Coach l v f e n d i d&g) $35

Tshirts (Polo ,ed hardy,lacoste) $15

Jean(True Religion,ed hardy,coogi) $30

Sunglasses(Oakey,coach,gucci,A r m a i n i) $15

New era cap $12

Bikini (Ed hardy,polo) $20

Accept credit card and free shipping.

====== http://www.clothes8.org ======
Posted by :  adalin at 12:51 on Friday, April 13, 2012
welcome to http://www.happy2get.com Accept paypal!
_________________________$$$$$$$__________
________________________$$$$$$$$$$________
________________________$$$$$$$$$$$_______
_________________________$$$$$$$$$$$______
__________________________$$$$$$$$$$$_____
_____________________________$$$$$$$$$____
___________________________$$$$$$$$$$_____
http://www.happy2get.com $$$$$$$$$$$$$____
________________$$$______$$$$$$$$$$$$$$___
______________$$$$$$$$_____$$$$$$__$$$$$__
_____________$$$$$$$$$$_____$$$$____$$$$$_
___________$$$$$$_$$$$$$$$__$$$$______$$$$
__________$$$$$_____$$$$$$$$_$$$$_______$$$
___ _____$$$$$_________$$$$$$$$$$$$_______$$$
_______ $$$_____________$$$$$$$$$$$________$$$
_____$$$__ ______________$$$$$$$$$$________$$$$$$
http://www.happy2get.com


To post comments you need to become a member. If you are already a member, please log in .

 



RELATED ARTICLES
ASP FilesystemObject
by Jeff Anderson
An introduction to the Filesystemobject
ASP GetTempName
by Jeff Anderson
Use the GetTempName method to create a randomly generated temporary file on the server.
ASP OpenTextFile
by Jeff Anderson
An introduction to the OpenTextFile Method of the FileSystemObject
ASP Format Date and Time Script
by Jeff Anderson
An ASP script showing the variety of date and time formats possible using the FormatDateTime Function.
Email validation using Regular Expression
by Jeff Anderson
Using regular expression syntax is an exellent way to thoroughly validate an email. It's possible in ASP.
Add or Subtract Hours in SQL or ASP using DateAdd
by Jeff Anderson
A beginners guide to using the SQL DATEADD function to add or subtract hours. Particularly useful when setting the time displayed on the ASP page to a different time zone (eg when the server is in the US, and the site is for a UK audience).
ASP FileExists
by Jeff Anderson
An introduction to the FileExistsMethod of the FileSystemObject
The asp:radiobutton and asp:radiobuttonlist control
by David Sussman, et al
In HTML, radio buttons are used when we need to make multiple sets of choices available, but we want the user to select only one of them.
ASP CreateTextFile
by Jeff Anderson
An explanation of the CreateTextFile Method, part of the ASP FileSystemObject
Concatenate strings in sql
by Jeff Anderson
A brief introduction to concatenating strings in an sql query (using SQL server or access databases).








Recent Forum Threads
• What is subroutine?
• How to create module that count Desktop Turn on and off time?
• Re: Improve website performance with HTML5
• How to write program to read decimal value from microcontroller port?
• Simple step to learn Visual Basic
• Re: Benefit of using PHP programming
• Re: What are the java advance technologies?
• Re: There are quite a few TaylorMade Burner 2.0 Irons
• Enhance website look with java script


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012