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

I have an Excel 97 - 2003 project in which I need to perform a date
conversion. I have two dates that come from the FileDateTime function that
I want to compare (i.e., which is newer). FileDateTime (at least on my
system) returns a date in a format like "1/28/2004 2:24:40 PM".

Anybody have a suggestion on how to convert that string representation of a
date into a format that can be used for comparison?

TIA,

josh

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

you can try cdate function or the format function works good for me
sometimes.

format(strValue, "mm/dd/yyyy HH:MM AM/PM") then make sure you format
the other date string the same way.

Keith
www.kjtfs.com


---
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
conversions dperalta Excel Worksheet Functions 1 July 18th 08 10:17 PM
Conversions dengel Excel Worksheet Functions 2 February 13th 07 09:56 PM
Date conversions Richard Excel Discussion (Misc queries) 5 January 7th 07 07:51 PM
unwanted date conversions Gary N Excel Worksheet Functions 1 January 13th 06 12:47 AM
Date Conversions from UTC to EST Kosher Kitten Excel Worksheet Functions 1 March 1st 05 05:10 PM


All times are GMT +1. The time now is 03:01 PM.

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

About Us

"It's about Microsoft Excel"