ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Convert '6/23/2005' to '062305' (https://www.excelbanter.com/excel-programming/332811-convert-6-23-2005-062305-a.html)

Ken Loomis

Convert '6/23/2005' to '062305'
 
Can anyone suggest a way to convert a date that looks like this:

6/23/2005

to

062305


Thanks in advanced.

Ken




JE McGimpsey

Convert '6/23/2005' to '062305'
 
One way:

MsgBox Format(Date, "mmddyy")

In article ,
"Ken Loomis" wrote:

Can anyone suggest a way to convert a date that looks like this:

6/23/2005

to

062305


Thanks in advanced.

Ken


Ken Loomis

Convert '6/23/2005' to '062305'
 
Thanks,

That is so much more elegant then the character at a time programming I was
trying.

Ken


"JE McGimpsey" wrote in message
...
One way:

MsgBox Format(Date, "mmddyy")

In article ,
"Ken Loomis" wrote:

Can anyone suggest a way to convert a date that looks like this:

6/23/2005

to

062305


Thanks in advanced.

Ken





All times are GMT +1. The time now is 07:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com