Date Format

  • Thread starter Thread starter cstang999
  • Start date Start date
C

cstang999

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
 
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

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
 
Check your other post, too.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Date Format 7
Date format. 1
Macro to select rows based on dates 11
Sum If and Count If 2
Code Optimization 0
Excel is changing date format incorrectly 7
Gears 14
Dae format 3

Back
Top