|
-
Aug 3rd, 2005, 09:35 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Formatting Now Function
How would I get the Now function in VB to return this:
Wednesday, 8/3/2005 10:33:04 AM
instead of just:
8/3/2005 10:33:04 AM
?
Any assistance appreciated.
Last edited by doofusboy; Aug 3rd, 2005 at 10:30 AM.
Do canibals not eat clowns because they taste funny? 
-
Aug 3rd, 2005, 09:41 AM
#2
Re: Formatting Now Function
Format$(Now, vbLongDate)
At least, I think it is LongDate. At any rate, Format$ is the function you want.
-
Aug 3rd, 2005, 09:44 AM
#3
Fanatic Member
Re: Formatting Now Function
YOu could try this.
VB Code:
Format(Now, "DDDD, dd/MM/YY")
Hope this helps!!
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
-
Aug 3rd, 2005, 10:30 AM
#4
Thread Starter
Fanatic Member
Re: Formatting Now Function
Thanks, exactly what I was looking for.
Do canibals not eat clowns because they taste funny? 
-
Aug 3rd, 2005, 10:41 AM
#5
Fanatic Member
Re: [RESOLVED] Formatting Now Function
if you widh to show am or pm just ammed like so.
VB Code:
Debug.Print Format$(Now, "DDDD, dd/MM/YY hh:mm:ss am/pm")
Hope this helps!!
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|