LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vba excel - converting Number to Date


Hi all,

I have a list of numbers, and I need to sort them as date. fo
example:

281100 == must be 28/november/2000
110303 == must be 11/march/2003
271004 == must be 27/october/2004

I am trying to convert these numbers into dates, and sorting them, bu
getting errors in the translation, for example, if I try

NewDate=CDate(110303), I get 30/December/2201 instead o
11/November/2003

Could anybody help, please?
Thanks in advance,
Aldo

--
ajliak
-----------------------------------------------------------------------
ajliaks's Profile: http://www.excelforum.com/member.php...nfo&userid=819
View this thread: http://www.excelforum.com/showthread.php?threadid=27278

 
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
Converting Number to Date billbrandi Excel Discussion (Misc queries) 2 December 28th 07 09:25 PM
Converting a number to a date Pete Excel Discussion (Misc queries) 3 February 6th 07 03:51 AM
converting date to number Todd Excel Worksheet Functions 9 September 3rd 06 01:33 AM
converting 8-digit number to date DJ Excel Discussion (Misc queries) 6 June 12th 06 11:44 PM
converting a number to a date solo_razor[_26_] Excel Programming 2 November 4th 03 02:40 PM


All times are GMT +1. The time now is 08:55 PM.

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

About Us

"It's about Microsoft Excel"