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

Hi All,

I am using software, which export the report to csv format, in the date the
format is dd/mm/yy hh:mm:ss and when I try to convert the format to
[hh]:mm:ss then its comes like 942726:03:23, why?

Thanks & Regards

Hassan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Date Format

Excel sees the date and time as number of days and fractions of days from 1st
jan 1900. If you want to extract the time only from the date then you need to
subtract the integer of the date/time from the actual date/time.

Example: Your date and time in cell A1 as 10/9/2007 17:00

in cell B1 you could enter =A2-INT(A2) and format the cell to [hh]:mm

Regards,

OssieMac



"Hassan" wrote:

Hi All,

I am using software, which export the report to csv format, in the date the
format is dd/mm/yy hh:mm:ss and when I try to convert the format to
[hh]:mm:ss then its comes like 942726:03:23, why?

Thanks & Regards

Hassan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Date Format

Example was incorrect for the value in Cell A1. Should have been:-
=A1-INT(A1)

My apologies for the error.

Regards,

OssieMac


"OssieMac" wrote:

Excel sees the date and time as number of days and fractions of days from 1st
jan 1900. If you want to extract the time only from the date then you need to
subtract the integer of the date/time from the actual date/time.

Example: Your date and time in cell A1 as 10/9/2007 17:00

in cell B1 you could enter =A2-INT(A2) and format the cell to [hh]:mm

Regards,

OssieMac



"Hassan" wrote:

Hi All,

I am using software, which export the report to csv format, in the date the
format is dd/mm/yy hh:mm:ss and when I try to convert the format to
[hh]:mm:ss then its comes like 942726:03:23, why?

Thanks & Regards

Hassan

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
permanent conversion of 1904 date format to 1900 date format Jos Excel Worksheet Functions 4 November 26th 15 02:48 PM
How do I convert dd/mm/yy date format to yyddd Julian date format itzy bitzy[_2_] Excel Worksheet Functions 8 December 11th 09 03:20 AM
change date format dd/mm/yyyy to Julian date format? itzy bitzy Excel Worksheet Functions 1 December 8th 09 07:42 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
Change a date in text format xx.xx.20xx to a recognised date format concatenator Excel Programming 1 November 24th 03 11:33 PM


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