#1   Report Post  
Posted to microsoft.public.excel.misc
pm pm is offline
external usenet poster
 
Posts: 122
Default Dates

I want to format my date from 1/24/2006 to 1242006

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Dates

I want to format my date from 1/24/2006 to 1242006

In code
============
YourDate = "1/24/2006"
CodedDate = Format$(YourDate, "mddyyyy")

On the sheet
============
Select cell or column, right-click and select Format Cells, select Custom
from the Category list on the Number tab, and put mddyyyy in the Type field.

Rick

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Dates

Use custom format

mddyyyy


--
Regards,

Peo Sjoblom



"pm" wrote in message
...
I want to format my date from 1/24/2006 to 1242006

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Dates

Format Cell Custom mddyyyy
--
Gary''s Student - gsnu200724


"pm" wrote:

I want to format my date from 1/24/2006 to 1242006

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Dates

On Thu, 24 May 2007 08:30:01 -0700, pm wrote:

I want to format my date from 1/24/2006 to 1242006

Thanks.


Why do you want to use an ambiguous format?

The format is mddyyyy

But how would you know, for example, if

1122006, which is the same format, represents

Jan 12, 2006 (1/12/2006) or
Nov 2, 2006 (11/2/2006)

???
--ron


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Dates

I want to format my date from 1/24/2006 to 1242006

Why do you want to use an ambiguous format?

The format is mddyyyy

But how would you know, for example, if

1122006, which is the same format, represents

Jan 12, 2006 (1/12/2006) or
Nov 2, 2006 (11/2/2006)


Won't the forced 2-digit day number control that? The last six digits are
always 2-digit day and 4-digit year... what ever is in front of that is the
month. Personally, if I had to do something like this, I would force the
month to 2 digits also.

Rick

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Dates

On Thu, 24 May 2007 14:44:05 -0400, "Rick Rothstein \(MVP - VB\)"
wrote:

I want to format my date from 1/24/2006 to 1242006


Why do you want to use an ambiguous format?

The format is mddyyyy

But how would you know, for example, if

1122006, which is the same format, represents

Jan 12, 2006 (1/12/2006) or
Nov 2, 2006 (11/2/2006)


Won't the forced 2-digit day number control that? The last six digits are
always 2-digit day and 4-digit year... what ever is in front of that is the
month. Personally, if I had to do something like this, I would force the
month to 2 digits also.

Rick


Rick,

You are correct. I was using the mdyyyy format but wrote mddyyyy.

mea culpa

Thanks for pointing it out.
--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


All times are GMT +1. The time now is 05:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"