Solved

formating date

Posted on 2006-11-07
4
157 Views
Last Modified: 2010-04-30
I want to format the date to loose the seperators:

eg: 7/11/2006 to 7112006

Idea on how?

cheers,

`Andy
0
Comment
Question by:xizor
  • 3
4 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 125 total points
ID: 17887628
if that is the date you can do

format(dateValue, "ddmmyyyy")

which would give

07112006 if dateVAlue = 7/11/2006
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17887633
x =replace(7/11/2006,"/","")
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17887640
MsgBox (Replace(Date, "/", ""))
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17887646
msgbox(replace("7/11/2006","/","")) or MsgBox (Replace(Date, "/", ""))
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question