Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Convert an Excel date to a date of my format in VBA

Hello,

I would be grateful if someone was able to help me with a date conversion
issue.

I want to be able to convert an Excel date to date of my format. But
without sending or displaying anything in the spreadsheet. Once the date is
converted I want to display it in a ListView and will not be displayed within
spreadsheet.

So I would appreciate your help on this matter, I have looked on the web and
looked at VBA functions but no joy.

Many Thanks

Sunnous
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Convert an Excel date to a date of my format in VBA

? format(12345,"mmm dd, yyyy")
Oct 18, 1933
? clng(dateSerial(2005,11,15))
38671

Dates are stored as the number of dates from a base date. In windows 1900.
In Mac 1904 are the defaults.

--
Regards,
Tom Ogilvy




"Sunnous" wrote in message
...
Hello,

I would be grateful if someone was able to help me with a date conversion
issue.

I want to be able to convert an Excel date to date of my format. But
without sending or displaying anything in the spreadsheet. Once the date

is
converted I want to display it in a ListView and will not be displayed

within
spreadsheet.

So I would appreciate your help on this matter, I have looked on the web

and
looked at VBA functions but no joy.

Many Thanks

Sunnous



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 do I convert US date with 12hr format to European date 24hr Enda K Excel Discussion (Misc queries) 1 November 15th 09 09:59 AM
Convert european foreign date format to US date format EAL Excel Worksheet Functions 1 May 14th 09 10:02 PM
convert serial date format to normal date format Flagworld Excel Discussion (Misc queries) 3 September 23rd 08 01:32 PM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
code to convert date from TEXT format (03-02) to DATE format (200203) Gauthier[_2_] Excel Programming 0 September 22nd 04 03:26 PM


All times are GMT +1. The time now is 08:23 AM.

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"