Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: convert a day to minute Post Reply Post New Topic
Author Message
rp123
Groupie
Groupie


Joined: 26 Feb 2009
Location: United States
Online Status: Offline
Posts: 47
Quote rp123 Replybullet Topic: convert a day to minute
     Posted: 04 Mar 2009 at 7:27am
I need help with DateTime field in crystal report XI.

Q1. I need to convert the {probsummarym1.outage.dur} DateTime field to minute.

For example :

1 18:37 AM to minutes where 1 is one day and 18 is hours and 37 is minutes.

Whenever all fields convert to minutes , The answer is 2557 total minutes.

How to convert the 1 day to minutes???
rp
IP IP Logged
gemi
Newbie
Newbie


Joined: 10 Mar 2009
Online Status: Offline
Posts: 2
Quote gemi Replybullet Posted: 10 Mar 2009 at 6:17am
1 day is 24 hours and each hour is 60 minutes, so it's DAY x 24 x 60.
You can use Day function to extract day number from datetime type field.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum