ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Re-Format Date (https://www.excelbanter.com/excel-programming/366806-re-format-date.html)

Noemi

Re-Format Date
 
Hi
Can someone please help in how I can re-format the date from ddmmyy back to
dd/mm/yy

or

If someone knows how to check whether a date entered as text is before or
after current date.

ie "110606" < date

when I try it never works as it sees the 110606 as a text field and not a
date field. If I change todays date to a text field then as far is it is
concerned todays date is greater but if it would have been earlier this week
then it would see the 110606 as greater.

Any help would be great.

Thanks
Noemi

Gord Dibben

Re-Format Date
 
Try datatext to columnsnextnextcolumn data formatdateDMY

This will change it to a real date.


Gord Dibben MS Excel MVP


On Mon, 10 Jul 2006 20:09:01 -0700, Noemi
wrote:

Hi
Can someone please help in how I can re-format the date from ddmmyy back to
dd/mm/yy

or

If someone knows how to check whether a date entered as text is before or
after current date.

ie "110606" < date

when I try it never works as it sees the 110606 as a text field and not a
date field. If I change todays date to a text field then as far is it is
concerned todays date is greater but if it would have been earlier this week
then it would see the 110606 as greater.

Any help would be great.

Thanks
Noemi



Noemi

Re-Format Date
 
Hi Gord

Can you please explain as I am not sure what you mean?

Sorry
Thanks
Noemi

"Gord Dibben" wrote:

Try datatext to columnsnextnextcolumn data formatdateDMY

This will change it to a real date.


Gord Dibben MS Excel MVP


On Mon, 10 Jul 2006 20:09:01 -0700, Noemi
wrote:

Hi
Can someone please help in how I can re-format the date from ddmmyy back to
dd/mm/yy

or

If someone knows how to check whether a date entered as text is before or
after current date.

ie "110606" < date

when I try it never works as it sees the 110606 as a text field and not a
date field. If I change todays date to a text field then as far is it is
concerned todays date is greater but if it would have been earlier this week
then it would see the 110606 as greater.

Any help would be great.

Thanks
Noemi





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

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