Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Date Modification

Please how do convert this using an Excel macro:

06.01.2014 00:00:00
06.07.2014 00:00:00


TO:

06/01/2014
06/07/2014
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Date Modification

Hi,

Am Wed, 13 Aug 2014 04:02:26 -0700 (PDT) schrieb sylink:

06.01.2014 00:00:00
06.07.2014 00:00:00

TO:

06/01/2014
06/07/2014


select your data = Format cells = and change the format to
dd/MM/yyyy


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Date Modification

On Wednesday, August 13, 2014 12:09:33 PM UTC+1, Claus Busch wrote:
Hi,



Am Wed, 13 Aug 2014 04:02:26 -0700 (PDT) schrieb sylink:



06.01.2014 00:00:00


06.07.2014 00:00:00




TO:




06/01/2014


06/07/2014




select your data = Format cells = and change the format to

dd/MM/yyyy





Regards

Claus B.

--

Vista Ultimate / Windows7

Office 2007 Ultimate / 2010 Professional



Thanks for your response. I tried that earlier but it didn''t work. I am using Office 2010. I dont know if there is any other trick
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Date Modification

Please how do convert this using an Excel macro:

06.01.2014 00:00:00
06.07.2014 00:00:00


TO:

06/01/2014
06/07/2014


Assuming subject cells are selected...

In a standard module:

Option Explicit

Sub ConvertDateTimeToDateOnly()
Dim rng
For Each rng In Selection
rng.Value = DateValue(Replace(rng.Value, ".", "/"))
Next 'rng
End Sub

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
How can I determine the modification date of a cell? robrowe Excel Worksheet Functions 3 February 9th 09 06:00 PM
Formula for last modification date? Krista Excel Discussion (Misc queries) 3 October 26th 07 12:26 AM
Modification Date ChrisAMEC Excel Discussion (Misc queries) 2 July 20th 07 06:36 PM
Last Modification Date Hal Excel Worksheet Functions 2 May 22nd 06 08:44 PM
Excel file modification date GROSNER Excel Discussion (Misc queries) 5 March 4th 05 01:19 AM


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