Formating dates in classic asp
Posted: 01 May 2010 02:05 AM   [ Ignore ]
Newbie
Rank
Total Posts:  30
Joined  2010-04-25

I’m having a bit of trouble getting my head round date formatting in asp, my current date displays like this: 05/04/2010 21:03:14 using this code response.write("” & rs("my_date")) Does anyone know how i can format the date to show just the month, year or day. Something like this: 5th april 2010

I’ve dug up some code on the web that can display todays date but I can’t apply this formatting to my date displayed from a database. looks like this: Response.write FormatDateTime(todaysDate,1)

____________________________________________________________

chevrolet 1500 wheel bearing
Beratung beim Hauskauf

Profile
 
 
Posted: 04 February 2011 06:34 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  3
Joined  2011-02-04

I’ve some trouble, any one help me?
______________________________________
(.....Google.....)

Profile
 
 
Posted: 10 February 2011 02:48 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  6
Joined  2011-02-09

i have the same issue
______________________
furniture moroccan henna lamps implants capillaires cheveux montreal seo company

Profile
 
 
Posted: 18 February 2011 07:11 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  9
Joined  2011-02-18
ajaybali - 01 May 2010 02:05 AM

I’m having a bit of trouble getting my head round date formatting in asp, my current date displays like this: 05/04/2010 21:03:14 using this code response.write("” & rs("my_date")) Does anyone know how i can format the date to show just the month, year or day. Something like this: 5th april 2010

I’ve dug up some code on the web that can display todays date but I can’t apply this formatting to my date displayed from a database. looks like this: Response.write FormatDateTime(todaysDate,1)



____________________________________________________________



chevrolet 1500 wheel bearing
Beratung beim Hauskauf

sorry i dont knowrite now but i will tel you very soon

Web Design Company

Profile
 
 
Posted: 08 March 2011 05:40 PM   [ Ignore ]   [ # 4 ]
Sr. Member
RankRankRankRank
Total Posts:  133
Joined  2010-04-23

The 1 in FormatDateTime specifies the long format. You won’t be able to use FormatDateTime to format the date in the format that you want.
_____________________________
Sudoku - Flash Game - Flash Game
Flash Game - xnxx - Flash Game

Profile