1926f Date & Time difference
Sign Up |  Live StatsLive Stats    Articles 37,469| Comments 178,627| Members 19,494, Newest Kartarsingh| Online 477
Home Contact
 (Forgotten?): 
    10 years of Excellence
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Date & Time difference

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
time difference Ab Information Technology 2 28-Jul-2006 08:40 AM
date/time Bobcat Information Technology 4 28-Jul-2006 08:40 AM
Date and Time Newbie to Access Information Technology 2 28-Jul-2006 08:10 AM
Convert from Unix time to Access Date/Time? Marty Christion Information Technology 3 28-Jul-2006 08:02 AM
Help! Calculating Date/Time Brandon Y Information Technology 6 18-Nov-2005 13:59 PM


Tags
date, time, difference
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:12 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Date & Time difference

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi All,

I am trying to find a formula that I can use in Access to give the time
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10362-date-and-time-difference.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
difference in Hours.

I have the following fields:

[StartDate] , [StartTime] , [EndDate] , [EndTime]

I want to find a formula that will provide a difference in time using
the above fields. But I also need to look between the hours of 09:00am
to 5:30pm.

Does anything exist that can cover this?

I can do this using Crystal reports however I am really struggling with
Access.


Many Thanks

Adam



Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:12 AM
Ofer Cohen's Avatar Ofer Cohen
Guest
 
Posts: n/a
   
   
RE: Date & Time difference

Check help on the function DateDiff, it can give the difference between two
date/time.

--
Good Luck
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
BS"D


"Adam@nospam.com" wrote:

> Hi All,
>
> I am trying to find a formula that I can use in Access to give the time
> difference in Hours.
>
> I have the following fields:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
>
> [StartDate] , [StartTime] , [EndDate] , [EndTime]
>
> I want to find a formula that will provide a difference in time using
> the above fields. But I also need to look between the hours of 09:00am
> to 5:30pm.
>
> Does anything exist that can cover this?
>
> I can do this using Crystal reports however I am really struggling with
> Access.
>
>
> Many Thanks
>
> Adam
>
>

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:12 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Date & Time difference

That does not consider the working hours part of my question.

All DateDiff does is provide the difference between the dates in
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
various formats.

How do I get it to only count when between the hours of 09:00am
to 5:30pm?

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:12 AM
Ofer Cohen's Avatar Ofer Cohen
Guest
 
Posts: n/a
   
   
Re: Date & Time difference

In houres
?DateDiff("h",#09:00am#,#5:30pm#)
8

In Minutes
?DateDiff("n",#09:00am#,#5:30pm#)
510

--
Good Luck
BS"D

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362

"Adam@nospam.com" wrote:

> That does not consider the working hours part of my question.
>
> All DateDiff does is provide the difference between the dates in
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
> various formats.
>
> How do I get it to only count when between the hours of 09:00am
> to 5:30pm?
>
>

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:13 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Date & Time difference

Thats awesome, thank you!

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:13 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Date & Time difference

Actually, this doesnt solve the problem.

This merely counts the time difference between 09:00 and 5:30, this
doesn't answer my original question.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362

Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:13 AM
Ofer Cohen's Avatar Ofer Cohen
Guest
 
Posts: n/a
   
   
Re: Date & Time difference

What do you expect to get from the difference between 09:00 and 5:30?

--
Good Luck
BS"D


"Adam@nospam.com" wrote:

> Actually, this doesnt solve the problem.
>
> This merely counts the time difference between 09:00 and 5:30, this
> doesn't answer my original question.
>
>

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:13 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Date & Time difference

Well I've got a start date and start time, which I need to work out the
hourly time difference from the end date and end time.

By putting DateDiff("h",#09:00#,#5:30#) it is merely counting the
difference between 09.00 and 5.30, not my start date and time vs. my
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
end date and time.


Ofer Cohen wrote:

> What do you expect to get from the difference between 09:00 and 5:30?
>
> --
> Good Luck
> BS"D
>
>
> "Adam@nospam.com" wrote:
>
> > Actually, this doesnt solve the problem.
> >
> > This merely counts the time difference between 09:00 and 5:30, this
> > doesn't answer my original question.
> >
> >


Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:13 AM
Rick Brandt's Avatar Rick Brandt
Guest
 
Posts: n/a
   
   
Re: Date & Time difference

  Donate Today!  
Adam@nospam.com wrote:
> Well I've got a start date and start time, which I need to work out
> the hourly time difference from the end date and end time.
>
> By putting DateDiff("h",#09:00#,#5:30#) it is merely counting the
> difference between 09.00 and 5.30, not my start date and time vs. my
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
> end date and time.


So substitute your full start date and end date where the epxression currenlty
has #09:00# and #5:30#.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10362
RBrandt at Hunter dot com


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Can Sikhs worship...
By Ishna
Today 16:10 PM
1 Replies, 13 Views
Difference in Bowing...
By Kamala
Today 15:08 PM
11 Replies, 248 Views
What Really Happened on...
Today 12:46 PM
13 Replies, 192 Views
English Sri Guru Granth Sahib Ji Translations
Today 12:22 PM
3 Replies, 65 Views
Free Online Gurbani...
Today 03:56 AM
13 Replies, 4,329 Views
English Sri Guru Granth...
Today 03:51 AM
5 Replies, 169 Views
Edward Snowden: the...
Today 03:34 AM
3 Replies, 158 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:23 AM
407 Replies, 9,424 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 17:57 PM
255 Replies, 6,055 Views
What Is Difference...
Yesterday 09:18 AM
6 Replies, 181 Views
First There is Water by...
By Ishna
Yesterday 05:03 AM
3 Replies, 190 Views
Cooking Without Alcohol
Yesterday 02:12 AM
12 Replies, 195 Views
Learning from Baba...
Yesterday 01:38 AM
0 Replies, 312 Views
Eckhart Tolle
17-Jun-2013 18:08 PM
2 Replies, 126 Views
Thought of the Moment!
17-Jun-2013 16:35 PM
115 Replies, 6,092 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 16:16 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 4.12774 seconds with 32 queries
0