Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Easy date formatting question

Reply
Thread Tools

Easy date formatting question

 
 
J. Muenchbourg
Guest
Posts: n/a
 
      10-06-2004

I have a variable that represents a standard mm/dd/yyyy date , but i
want to change it to just October 6

''''

datepart("m","d" , mydatevariable)

'''''

....doesnt work.

Muench

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
dlbjr
Guest
Posts: n/a
 
      10-06-2004
Function MyDateFormat(dtm1)
If IsDate(dtm1) Then
MyDateFormat = MonthName(DatePart("m",dtm1)) & " " & Day(dtm1)
End If
End Function

--
'dlbjr
'Pleading sagacious indoctrination!


 
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
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP General 11 11-08-2003 11:24 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP .Net 1 11-08-2003 09:14 PM
Given a date, how to find the beginning date and ending date of that week Matt C Programming 3 11-08-2003 09:07 PM
Given a date, how to find the beginning date and ending date of that week Matt C++ 2 11-08-2003 08:30 PM



Advertisments