Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > Other Programming - Perl, C++, Java, ASP, .NET Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-03-2005, 04:51 PM   #1 (permalink)
que
Member
 
Join Date: Aug 2005
Posts: 31
Default Date formating in Asp

Hello,

I'm using FormatDateTime with vbLongDate in the following line:

<%=FormatDateTime((rsBlogEntry.Fields.Item("blogDa te").Value), vbLongDate)%>

Which returns the format:
Wednesday, August 02, 2005

I was looking at the different date formats and couldn't find one that drops the day of the week and just returns: August 02, 2005

How do you format the date this way? Thanks.
que is offline   Reply With Quote
Sponsored Links
Old 08-04-2005, 08:30 PM   #2 (permalink)
clifford
Junior Member
 
Join Date: Jun 2005
Location: Finland
Posts: 26
Default

Hummm, well to go from the first occurance of the coma/space try this:

PHP Code:
Dim newDate
newDate 
FormatDateTime((rsBlogEntry.Fields.Item("blogDate").Value), vbLongDate)

newDate Mid(newDateInStr(newDate", "), Len(newDate)) 

Can't try it right now but it should work.
clifford is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 11:02 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums