ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dates in Excel (XP) (https://www.excelbanter.com/excel-discussion-misc-queries/96968-dates-excel-xp.html)

Paysol

Dates in Excel (XP)
 
How do I change a date from dd/mm/yy to ccyymmdd

Marcelo

Dates in Excel (XP)
 
hi,

I did not understand what is cc,

but:

Format | Cell | Custom

ccyymmdd

hth
regards from Brazil
Marcelo

"Paysol" escreveu:

How do I change a date from dd/mm/yy to ccyymmdd


Dave Peterson

Dates in Excel (XP)
 
Make sure that the cell is really a date (not text that looks like a date).

Format|Cells|Custom
type
yyyymmdd
in that custom box

Paysol wrote:

How do I change a date from dd/mm/yy to ccyymmdd


--

Dave Peterson

Dave Peterson

Dates in Excel (XP)
 
CC = Century
20 in 2006



Marcelo wrote:

hi,

I did not understand what is cc,

but:

Format | Cell | Custom

ccyymmdd

hth
regards from Brazil
Marcelo

"Paysol" escreveu:

How do I change a date from dd/mm/yy to ccyymmdd


--

Dave Peterson

Marcelo

Dates in Excel (XP)
 
ohhhh. thanks, Dave

"Dave Peterson" escreveu:

CC = Century
20 in 2006



Marcelo wrote:

hi,

I did not understand what is cc,

but:

Format | Cell | Custom

ccyymmdd

hth
regards from Brazil
Marcelo

"Paysol" escreveu:

How do I change a date from dd/mm/yy to ccyymmdd


--

Dave Peterson


Marcelo

Dates in Excel (XP)
 
Thanks again Dave
but have notice that the century of 2006 is 21 not 20

regards from Brazil
Marcelo

"Dave Peterson" escreveu:

CC = Century
20 in 2006



Marcelo wrote:

hi,

I did not understand what is cc,

but:

Format | Cell | Custom

ccyymmdd

hth
regards from Brazil
Marcelo

"Paysol" escreveu:

How do I change a date from dd/mm/yy to ccyymmdd


--

Dave Peterson


Dave Peterson

Dates in Excel (XP)
 
Ok.

CC=the leftmost 2 digits in the 4 digit year string.

=int(year/100)


Marcelo wrote:

Thanks again Dave
but have notice that the century of 2006 is 21 not 20

regards from Brazil
Marcelo

"Dave Peterson" escreveu:

CC = Century
20 in 2006



Marcelo wrote:

hi,

I did not understand what is cc,

but:

Format | Cell | Custom

ccyymmdd

hth
regards from Brazil
Marcelo

"Paysol" escreveu:

How do I change a date from dd/mm/yy to ccyymmdd


--

Dave Peterson


--

Dave Peterson


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

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