Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Date Format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cstang999@gmail.com - 18 Sep 2007 08:56 GMT
Hello

Can anyone tell me how to convert the date (e.g 17-09-2007) into
this format : 1 7 0 9 0 7.

Thanks in advance.
CS TANG
rajeevbhatt17@gmail.com - 18 Sep 2007 09:49 GMT
On Sep 18, 9:56 am, cstang...@gmail.com wrote:
> Hello
>
[quoted text clipped - 3 lines]
> Thanks in advance.
> CS TANG

I see there is a space between the digits. If that is the case then:

Sub abc()
strTemp = ""
strdate = Format(Date, "DDMMYY")

For i = 1 To 6
   strTemp = strTemp & Mid(strdate, i, 1) & " "
Next i
End Sub
Dave Peterson - 18 Sep 2007 13:15 GMT
Check your other post, too.

> Hello
>
[quoted text clipped - 3 lines]
> Thanks in advance.
> CS TANG

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.