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: 74
Default formatting date

I have the following code:

dd = Right(sd, 2)
mm = Mid(sd, 3, 2)
yy = Left(sd, 2)
temp = dd & "/" & mm & "/20" & yy
temp = Format(temp, "dd/mm/yy")
Cells(3, "c").Value = temp

where sd is s string which contains a date in the format 031124.

I want the value to appear in cells(3,"c") in the format 24/11/03.

No matter what I do, the format always ends up as 11/24/2003.

Is there a way of making excel do what I want, not what it wants?
Thanks
Chris


 
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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Date Formatting TheRiverT Excel Discussion (Misc queries) 4 August 7th 09 08:46 PM
formatting of date Libby Excel Discussion (Misc queries) 4 November 6th 08 11:20 PM
Date Formatting MichaelR Excel Discussion (Misc queries) 4 June 23rd 08 03:34 PM
Help with formatting the date. Lee Excel Discussion (Misc queries) 6 February 24th 06 07:27 PM


All times are GMT +1. The time now is 10:43 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"