156f6 How do I extract the AM/PM from a time date stamp?
Sign Up |  Live StatsLive Stats    Articles 37,317| Comments 177,129| Members 19,400, Newest michaeljg| Online 433
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » How do I extract the AM/PM from a time date stamp?

How do I extract the AM/PM from a time date stamp?

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
How do you make a date / time stamp while starting a new entry? Shawn Information Technology 9 28-Jul-2006 08:30 AM
Is it possible to time stamp a field and current user? JDJones Information Technology 2 28-Jul-2006 08:27 AM
Time stamp for modifying a record ibeetb Information Technology 3 28-Jul-2006 08:21 AM
Re: need date/time stamp on each line in memo field Maly Information Technology 1 28-Jul-2006 08:18 AM
Possible to archive tables in Access with Date/Time stamp? Ed Information Technology 1 11-Nov-2005 20:08 PM


Tags
am or pm, ampm, date, extract, stamp, time
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:11 AM
k's Avatar k
Guest
 
Posts: n/a
   
   
How do I extract the AM/PM from a time date stamp?

  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
I am able to extract the date in individual format and the time in the
individual format but I can not extract the AM/PM from this string. How do I
extract that part? I have tried using a and A for the AM/PM but that did not
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10307-how-do-i-extract-am-pm.html
work. Can anyone assist me with this issue?

*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction 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:11 AM
Al Camp's Avatar Al Camp
Guest
 
Posts: n/a
   
   
Re: How do I extract the AM/PM from a time date stamp?

K,
As long as that field contains Time info, a format of something like...
hh:nn a/p would give 10:00 a
hh:nn AM/PM would yield 10:00 AM
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10307
Check Format/Date and Time in Help.

--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10307


"k" wrote in message
news:3A32C68A-555B-4C99-90BB-5977ACB15FC0@microsoft.com...
>I am able to extract the date in individual format and the time in the
> individual format but I can not extract the AM/PM from this string. How do I
> extract that part? I have tried using a and A for the AM/PM but that did not
> work. Can anyone assist me with this issue?



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:11 AM
k's Avatar k
Guest
 
Posts: n/a
   
   
Re: How do I extract the AM/PM from a time date stamp?

The type of data that I am using looks like this: 4/3/2006 836 AM
I am working in a query pulling the different info in seperate fields to for
different fields like this: 4/3/2006
836 AM
The Am does not follow regardless of what I type in to try and extract it
from the data. The help sections talks about the basic format but these
tables were created prior to my employment and the format did not work. Do
you know of anything else that might work?


"Al Camp" wrote:

> K,
> As long as that field contains Time info, a format of something like...
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10307
> hh:nn a/p would give 10:00 a
> hh:nn AM/PM would yield 10:00 AM
> Check Format/Date and Time in Help.
>
> --
> hth
> Al Camp
> Candia Computer Consulting - Candia NH
> http://home.comcast.net/~cccsolutions
>
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10307
>
> "k" wrote in message
> news:3A32C68A-555B-4C99-90BB-5977ACB15FC0@microsoft.com...
> >I am able to extract the date in individual format and the time in the
> > individual format but I can not extract the AM/PM from this string. How do I
> > extract that part? I have tried using a and A for the AM/PM but that did not
> > work. Can anyone assist me with this issue?

>
>
>

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:12 AM
Jerry Porter's Avatar Jerry Porter
Guest
 
Posts: n/a
   
   
Re: How do I extract the AM/PM from a time date stamp?

  Donate Today!  
K,

The AM/PM isn't part of the data, but is a result of formatting the
time for display purposes, which the query does automatically.

If you just want the AM or PM, try the following:

Right(Format(,"Medium Time"),2)

Replace by your field name.

This will format the date as a string ending in AM or PM, and then take
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10307
the last 2 characters.

You might be able to get away with just:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10307

Right(,2)

Jerry

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
30 Day Amrit Vel 'a'...
Today 04:34 AM
29 Replies, 231 Views
What I believe Hukam to...
Today 03:15 AM
13 Replies, 124 Views
Losing My Religion: Why...
Today 02:27 AM
1 Replies, 30 Views
Should SPN Keep the...
Today 02:02 AM
19 Replies, 512 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:46 AM
304 Replies, 7,472 Views
Thought of the Moment!
Today 01:46 AM
108 Replies, 5,088 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:18 AM
173 Replies, 4,375 Views
Student Compares Toilet...
Today 01:05 AM
1 Replies, 45 Views
What Do You Think of...
Today 00:53 AM
34 Replies, 611 Views
Amrit
Yesterday 23:38 PM
4 Replies, 342 Views
Map shows world's 'most...
Yesterday 18:58 PM
16 Replies, 276 Views
Do you believe in...
Yesterday 13:15 PM
180 Replies, 3,766 Views
BHOOTS (Ghosts) and...
Yesterday 13:08 PM
102 Replies, 13,887 Views
How does Sikhi help you...
Yesterday 12:44 PM
17 Replies, 669 Views
Why are There so Many...
Yesterday 10:23 AM
70 Replies, 5,047 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 04:37 AM.
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 0.39001 seconds with 32 queries
0