PC Review


Reply
Thread Tools Rate Thread

FormatDateTime Question In Outlook

 
 
srm
Guest
Posts: n/a
 
      8th Jun 2005
I'm using O2003. I have the following script that returns the
following values: day of week and date in long format

"Wednesday, June 08, 2005"

Sub ShowDate()
Item.Body = FormatDateTime(Date, vblongdate) & " - "
End Sub

Sub CommandButton1_Click()
Call ShowDate()
End Sub

Is there a way to format the date so it only displays: "June 08, 2005"

thanks

srm

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFnaWNNYXJrZXI=?=
Guest
Posts: n/a
 
      9th Jun 2005
Try this:
I commented out the second line and inserted the MsgBox to demonstrate.
Sub ShowDate()
' Item.Body = Format(Date, "mmmm dd, yyyy") & " - "
MsgBox = Format(Date, "mmmm dd, yyyy") & " - "
End Sub
Mark

"srm" wrote:

> I'm using O2003. I have the following script that returns the
> following values: day of week and date in long format
>
> "Wednesday, June 08, 2005"
>
> Sub ShowDate()
> Item.Body = FormatDateTime(Date, vblongdate) & " - "
> End Sub
>
> Sub CommandButton1_Click()
> Call ShowDate()
> End Sub
>
> Is there a way to format the date so it only displays: "June 08, 2005"
>
> thanks
>
> srm
>
>

 
Reply With Quote
 
srm
Guest
Posts: n/a
 
      9th Jun 2005
Mark:


Thanks, but it seems the Format command doesn't work in the Script
Editor. I get a type mismatch.

Any ideas.

Shawn

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Microsoft ASP .NET 2 17th Oct 2007 03:52 PM
Error in vbscript code trying to return FormatDateTime(myTime.ReceivedTime GlenD Microsoft Outlook Form Programming 1 4th Nov 2005 06:34 PM
Re: FormatDateTime Miha Markic [MVP C#] Microsoft Dot NET 0 27th Apr 2004 01:15 PM
Moving categories from Outlook 2002 to Outlook 2003 - Answer to my own question. Steven Blake Microsoft Outlook Installation 0 29th Mar 2004 04:18 AM
??? Question about outlook formatting emails in outlook express. ??? Jake Microsoft Outlook Discussion 1 6th Aug 2003 01:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:34 PM.