Day and time question

Hi
I have the following
Arrival_date Date
Arrival_time VARCHAR(2) (15)
Arrival_day VARCHAR(2) (15)
When the user enter the date in the arrivals date field the other 2 field to be filed with the correct day and system time (I want to make sure that time will be entered in military format HH:MI)
Thanks,
Ribhi

Hello,
For that I would just store the timestamp once and then use that to convert to whatever you like, otherwise you have the problem of keeping the various columns in sync.
For example, to get the day of the week from the timestamp, we could -
jes@DBTEST> select to_char(sysdate, 'DAY') as day from dual;
DAY
FRIDAYYou can find a list of useful date/time manipulation techniques here -
http://www.psoug.org/reference/date_func.html
Hope this helps,
John
http://jes.blogs.shellprompt.net
http://apex-evangelists.com

Similar Messages

  • How to change the day and time seen on the calendar

    Hi.
    I am a bit confused as to how to restrict the day and time shown on a calendar.
    The ical help says this:
    To change the days of the week or the number of hours that appear in the main calendar view, choose iCal > Preferences, and make your choices from the Week and Day pop-up menus in the General pane. For example, you can choose to only see the hours from 9AM to 5PM on Monday through Friday.
    However, in my preferences pane, i don't have a either a week or day pop up menu that i can see, so i can't seem to restrict these fields. It's really frustrating as calendars are beginning at 1am!!!!
    Anybody got any ideas?
    Thanks
    David Tobin

    OK, but what did the help menu mean when it said..
    To view the day's, week's, or month's events, click the Day, Week, or Month button at the bottom of the iCal window.
    To change the days of the week or the number of hours that appear in the main calendar view, choose iCal > Preferences, and make your choices from the Week and Day pop-up menus in the General pane. For example, you can choose to only see the hours from 9AM to 5PM on Monday through Friday.
    To change which months are shown in the mini-month calendar (in the lower-left corner of the iCal window), click the arrows above the mini-month calendar. To see more than one month, drag the mini-month divider (the horizontal gray bar above the diamond) upward.
    To see events that are earlier or later in the day, use the scroll bar on the right side of the main calendar view.
    To change the range of time in the main calendar view that is not shaded (representing your "normal" day), choose iCal > Preferences. In the General pane, choose the times you want to appear in white (not shaded) from the "Day starts at" and "Day ends at" pop-up menus. All times outside that range are shaded.
    This suggests that you should be able to limit the hours actually shown on the calendar to a set range as opposed to just changing the shaded area.
    Have you any idea how to achieve this, as i don't see the popup menu suggested with...
    To change the days of the week or the number of hours that appear in the main calendar view, choose iCal > Preferences, and make your choices from the Week and Day pop-up menus in the General pane. For example, you can choose to only see the hours from 9AM to 5PM on Monday through Friday.
    I am confused!!
    Any other ideas?
    David Tobin

  • How To insert Day And Time In flash AS2?

    I want to display Day and time in flash with AS2
    not only that i want to put certain event on certain date and time
    that means
    i have a movie clip with object on it ,when i run it,
    it changes its position
    BUT now i want to change movie clip position on certain date and time
    for eg;
    I have made a simple move clip of firework i want it auto play when it is
    (01.01.2012) (12:00 AM)
    Help Me.....

    user time is easiest.  the following checks if it's between 12am and 1am jan 1, 2012.
    var d:Date=new Date();
    if(d.getMonth()==0&d.getDate()==1&&d.getFullYear()==2012&&d.getHours()<1){
    // fireworks

  • How can I add the date at the top of the screen along with the day and time display?

    Hello,
    How can I add the date at the top of the screen along with the day and time display?
    Thanks so much!

    Open System Preferences>Date & Time:
    Ciao.

  • Calendar List mode not showing correct event days and times

    I am currently using Exchange server to sync my calendar events to google apps. All my calendar entries are correctly syncing to the iphone, but when I open List view, it shows all my entries on different days and times. Drilling down into an event, and it brings up the correct information. Switching to day or month, the events are displayed correctly.
    I have reset my phone and this problem is still occurring.
    Thanks for any advice.
    r
    Cant wait for multiple exchange servers!

    I found the other thread discussing this at length:
    http://discussions.apple.com/thread.jspa?threadID=2470805
    Doesn't solve it for me, but that's where the discussion should be...

  • What are the best days and times to send emails to customers?

    I have heard about and had great results with so many different days and times of the week sending emails to prospects and clients.  What have you found works best for you and what are some recommendations that you have? 

    On the other hand, I read an interesting article where the author says:
    Best Time to Send Emails: Thursday 8 – 9 am
    Most email marketing articles would claim that 8am is too early to send an email newsletter, but it works great for WordStream blasts – we get over 25% open rates with this time!
    2. Worst Time to Send Emails: Tuesday & Wednesday 8 – 10 am
    Many would claim that Tuesday and Wednesday mornings should be great times to send emails, but we’ve found that Tuesday mornings result in under 5% open rates, while Wednesday mornings have below 5% click to open ratios."
    you can find the entire article here:
    http://www.wordstream.com/blog/ws/2014/09/04/best-time-to-send-email-campaign#sthash.pEar97kA.dpuf

  • Day and Time vs Date-Day-time

    I currently have Day and Time showing in the top right of my desktop.
    I want to have Date Day and time showing.
    Is that possible, and how do I get it?
    thanks

    Hi
    You could jump in the deep end and try this out.
    This user tip explains how; Tip — Date and Time in the Menu Bar by Michael Conniff
    This works for Leopard as well.

  • Mail on a certain day and time

    So I need to be able to set up an email to send at a certain day and time, but I'm not allowed to use scheduled tasks.  The subject, body, and all the email info is stored in a table.  When the user inputs the email info on the form, they are asked if they want the email to be sent later and if so, what day and time?  I can capture all of the information I need, but I just don't know what to do with it.  Any ideas?

    Without using scheduled tasks?  No sorry I don't know of another way to schedule a task without using some form of schedule task tool.
    Now, the operating system, the Application server (i.e. ColdFusion) and the database probably all have some type of scheduled task tool that you could choose from.  But one of them is going to have to be used.
    What can't you use the ColdFusion scheduled task?

  • HT2513 I can barely see the day and time numbers in ical - any suggestions?

    I can barely see the day and time numbers in ical. I have tried adjusting contrast but doesn't help. Any suggestions?

    Could be corrupt plist try deleting com.apple.systemuiserver.plist
    found here  by using Finder>Go>Go to Folder (command shift G):
    copy and paste:
    ~/Library/Preferences/ com.apple.systemuiserver.plist
    delete this plist.
    now open terminal (Applications/Utilities/terminal.app) and paste the command:
    killall SystemUIServer
    and return. This command will kill the process and MacOS X will automatically rebuild the menu bar, clearing out old cache. Quit Terminal.
    Restart if neccessary.

  • Reminder keeps crashing after setting up day and time,

    When ever I set up a reminder in reminder and i set the day and time when the reminder should pop up Reminder crashes it closes down and ask me to reopen it
    any idea

    Well the goods is it wasn't a windows problem it was a cloud problem.  apple helped me fix it but again it shows the compatibility problems between the two.  sending back apple products and sticking with windows.  I don't know if your a tech or what because of your bold verbage but your cut and dry answer was not only incorrect but condescending.  Please, you don't have to respond because i will be closing the window and won't have need of it again with experiencing this type of response to my query I will choose to look elsewhere for assistance. just wanted to let you know how i felt about your feedback.  I do want to thank you for answering me but I also want to ask that you think about lightening up the next time you try to help someone. Thanks Tim have a great day.

  • I know the day and time of a conference call that took place b/w 2 Verizon customers and a 3rd party but it is not reflected in either phone record. Why?

      I am an attorney with a law firm that is involved in litigation where the date and time of a 3 way call that took place in June 2009 between an attorney at my firm, a broker, and the broker's client.  The broker and broker's client are both Verizon Wireless customers.  I have their phone records for June 2009.  I am 100% certain a three way phone call took place between the attorney in my firm, the broker, and broker's client.  However there is no phone record that shows a phone call between all three individuals. . 
    The first Verizon Customer is a local real estate broker with a West Palm Beach, Florida  phone number with a 561 area code.  The other Verizon Customer is the broker's client and was in CT on both 6/24 and 6/25.  The broker's cell phone records were reproduced by Verizon in 2014. I believe the client's cell phone records were reproduced by Verizon in 2013. The client has an 860 area code.  The law firm is in Palm Beach County with a 561 area code.  Any phone call from the law firm to the broker would be local and would only show up on the broker's cellphone record.  Any phone call from the law firm to the broker's client (who was not a client of the law firm) would be reflected in the law firm's long distance records.  There is no such phone call.  The broker's cell phone records show a 10 minute phone call between the broker and the law firm at 2:24 p.m on 6/24.  There is a 8 minute phone call from the broker to the law firm at 9:39 am on 6/25 and a 22 minute phone call from the law firm to the broker at 9:48 am.  The broker's cellphone record shows that during the 9:48 phone call the broker attempted to perform a 3 way call with the client at 10:04 and again at 10:05. Each attempt lasts just 1 minute and neither shows up on the client's cell phone records.  The phone call with the law firm and broker lasts an additional 4 minutes.
    The broker's and client's cell phone records show a 10/11 minute phone call on 6/25 depending on the record at 8:41 am.  There are numerous other phone calls between the broker and client on other days.   
    If the broker called the client then called the law firm, then the initial phone call should be reflected in both Verizon invoices, and the 2nd call should be reflected in the broker's record.
    The same would be true if the client initiated the phone calls.
    If the broker called the law firm or law firm called the broker, then called the broker's client the phone call should be reflected in the law firm's long distance records and the client's records.  It is not. There is no documentation that shows the client was participating in a 3 way call.
    My question is why not?   Alternatively, is it possible for the 3 way call not to be reflected in the records?  I have the phone records of both customers. I also have the invoice number for the broker.  How can I find out if the broker added the client to any of the above calls. 

        Hi papal74. I am sure that this is a situation in which these call records are extremely important. In order to provide additional information about these call records we would need to speak with you personally. Please give us a call at 800-922-0204. This way we can get down to the bottom of this.
    ErinW_VZW
    Follow us on Twitter @VZWSupport

  • Can I get the date to display along with the day and time

    can I get the date displayed with the day of week and time?

    Hi Mary, you can, but what version of OSX are you running on what Mac?
    See if this helps for starters...
    http://paulstamatiou.com/how-to-display-date-in-os-x-menu-bar

  • Setting: Date and Time question

    Don't ask but I really just noticed this now since the last clock change in March...
    I changed the time to the correct time but every day it defaults back an hour or really every time I turn it on to use, it defaults back to the wrong time.
    How do you make it display the correct time each time you turn it on? Does it have to do with the option "24 hour clock" being on or off? If the "24 hour clock" is ON, wouldn't that mean that the battery will be running 24/7 even though the switch is turned off to show the red/orange thing? Thanks.

    I see, now I understand. My computer crashed a few years ago and the clock was messed up after I brought it back to life. Maybe that's what it is. And even so, it's the same story with my computer, I fix the clock and Time Zone and it is good for one day only until I turn it off. The clock is wrong the next day.
    Thanks again. Sometimes when I go for a long walk I like to know what time it is - but then again I could always wear my watch.... but with me wearing the sunblcok and sweating, the watch could get dirty.......

  • Getting the date along with day and time on top right of sreen

    I know this sounds stupid, but I can' get the date to show up on the top right hand corner of screen to the left of the speaker icon. With tiger I had a facsimile calendar with the date and time of day on the bottom of my screen next to dock. Very nice. That disappeared with intro of Leopard ... any advice will be welcome. Steve in Phoenix

    This is the standard function and features of the menubar clock in OS X 10.3 thru 10.5.
    You will need to find a third party application to do what you wish.

  • Do not like updated ICal because the day and times are too faint to be read.

    Since update of ICal, the numbers (day of month and time of day) are too faint to be read.  Can this be fixed?

    There are no setting to change that right now. You may try to increase the contrast of your display while working with iCal
         System Preferences -> Universal Access -> Seeing
    in the Display section adjust the "Contrast" slider.

Maybe you are looking for

  • Hi! Album by Artist Question?

    When I transfered music from my old computer to my new one using Home Share I noticed that the first column to show up was the album by artist column. Is there anyway to fix this and restore the original order of my outlook beginning with the name an

  • Wrong distribution key in profit center planning 7KE1

    I have entered the profit center budget in Transaction 7KE1 for profit centet and account using appropriate profile and layout.  The distribution key appearing is "2" however the cost distribution is as per distribution key "1" (equal distribution). 

  • Encoding issue for file manager

    I am using the ditto command to duplicate a file. This file has unicode filename and as per http://developer.apple.com/qa/qa2001/qa1173.html I am first normalizing the name to kCFStringNormalizationFormD and then converting it to utf-8 before calling

  • Import probleme

    Dear All, I have created Import PO , duty calculation is correct in PO. For same Custom bill passing done (MIRO). IR values are calculated correctly. While doing the GR the values are coming in ERU it should be in INR. Exchange rate is maintained in

  • Back up disk based idisk?

    I have a time capsule and using time machine - I have moved most of my files to IDisk and have turned on the idisk on my mac for offline use. Anyone know how to get it to back up to time capsule via time machine. this is kind of a hole... Thanks