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

Hi, I need to convert the following date into a specific format for export
to a text file.

Worksheet date: 11/14/2002 1:30:00 PM

Need to convert to 021114.1330 (ie YYMMDD.HHMM, where the HHMM is in 24
hour time)

Thank you.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date time conversion

Do you require a cell format or macro data entered into a cell via
macro?

for macro



activecell.value = format(now(),"yymmdd.hhmm")
In using the above code i have come across a problem where the dat
does not appear in the correct format. To overcome this problem i use

sDate$ = format(now(),"yymmdd.hhmm")
activecell.value = sdat

--
Message posted from http://www.ExcelForum.com

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
Date and Time Conversion Mikekap Excel Worksheet Functions 3 September 11th 09 05:43 PM
Date & Time conversion????? Jon M Excel Discussion (Misc queries) 1 April 9th 09 11:48 PM
DATE AND TIME CONVERSION HELP John T[_2_] Excel Worksheet Functions 2 March 16th 09 04:40 PM
Date & Time Conversion from xml import loza Excel Discussion (Misc queries) 2 June 27th 08 09:51 AM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM


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