Date to numbers

Hi,
I have dates in format 'DD-MON-YYYY' is there any way to show dates in number
Eg: 1-jun-08 as 1
2-jul-08 as 2
4-jul-08 as 3
7-aug-08 as 4
Please suggest
Thanks
Sudhir

peter_raganitsch wrote:Hi Sudhir,
SELECT TO_DATE(your_date_variable, 'DD-MON-YYYY') - TO_DATE('01-JUN-2008', 'DD-MON-2008)
  FROM DUAL;Overlooking the syntax errors, this isn't close to the requirement:
with dates as (
  select '01-jun-2008' d from dual
  union
  select '02-jul-2008' from dual
  union
  select '04-jul-2008' from dual
  union
  select '07-aug-2008' from dual)
SELECT d, TO_DATE(d, 'DD-MON-YYYY') - TO_DATE('01-JUN-2008', 'DD-MON-YYYY') n
  FROM dates
D           N                     
01-jun-2008 0                     
02-jul-2008 31                    
04-jul-2008 33                    
07-aug-2008 67                    
4 rows selected

Similar Messages

  • Format of date and numbers

    Hi,
    in Italy the format of date is DD/MM/YYYY e the formato of numbers is NNN,DD (DD means Decimal).
    I use Excel for IPAD but when I write for instance 28/03/2015 the field shows 03/28/2015, the same problem is for numbers where the comma and the dot are inverted.
    How do I change the format of date and numbers?
    Thank you in advance.
    Max

    The general format of the date is tied to the language...use US english, get US date formatting.
    You may want to poke around in excel's settings. I know the desktop version allows you to alter the date formatting, but I'm not sure if the iPad app has that. Look for 'cell formatting' in the settings and see if it's alterable.
    If not, you can try to make your template on a PC, then put that excel onto your iPad and see if it honors the cell formatting already in place.

  • List View still displays dates as numbers after 2.1 Hotfix

    Hi
    Just tried the List View component after installing Fix Pack 2.1 Hot Fix.   I  put a list view component on the canvas, selected 3 datesone for each header, changed the Appearance - Header to Date and then hit preview.  The first header worksshows the dates but the other two headers show numbers, not dates.
    The documentation shows that this was fixed,  see below
    ADAPT01260598 (List View displays
    dates as numbers)
    Description:
    The header area of List View displays date values as numbers.
    New Behavior:
    This issue is resolved.

    No, I was just wondering since I have a second device on TMobile US and haven't gotten the update. I loaded this OS almost a month ago when it leaked on the Internet.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How do I create a chart in Keynote that auto-updates from data in Numbers?

    Hello all!  So, there are lots of answer to this for iWork'09, but I haven't found them for the current version of Work.
    What I'd like to do is take data from Numbers and create a chart in Keynote that would then auto-update if I edited the data in Numbers.  Put another way, the Keynote chart data would 'live' in Numbers - every time I edit the Numbers data, I'd like those changes to reflect in Keynote.  Any thoughts on how to do this outside of always cutting and pasting from Numbers to Keynote?
    Thanks!!

    Thanks Gary.  I thought I was crazy.  I remember that it used to be available - bummer that it's not now.

  • How do you create a column of sequenced dates in Numbers

    How do you create a column of sequenced dates in Numbers without typing in each date? For example: 01/05/15, 01/12/15, 01/19/15, 01/26/15, 02/02/15, etc.

    Hi Cha Ling,
    Another way,
    Enter your first two dates that show the desired interval- i.e. 01/05/15 and 01/12/15.
    Select both cells and choose fill from the contextual menu.
    Drag down to fill your column.
    quinn

  • How do you create a short cut to insert date in Numbers 3.1

    Hi,
    Does any one know how to create a keyboard shortcut for inserting the date in Numbers 3.1

    The install-by-doubleclicking Automator Service (where it becomes a menu pick if you use it often and find that more convenient than a formula in a spreadhseet) is here (Dropbox download). Depending on your settings you may need to go to System Preferences > Privacy & Security and click the 'Open Anyway' button. If you want you can assign it a keyboard shortcut in System Preference > Keyboard > Shortcuts.  If you don't like it or find you the formula is just as easy for you, then in Finder hold down the option key, choose Go in the menu and navigate to Library > Services, where you can trash it the way you would any file or package.
    SG

  • Can i search data in Numbers app?

    Can i search data in Numbers app for iPad like i do with an excel spreadsheet (ctrl+F)?
    Or i have to look though the whole spredsheet to find what i am looking for?

    "Find" is the second option under the tools menu (The wrench icon at the top of the Numbers screen)

  • Excel date to Numbers text format troubles

    I've been sent an Excel .xls document which I'm opening in Numbers '09 (2.1).
    The spreadsheet has a date column which I need to be in text format as dd/mm/yyyy. I expected the original Excel document to have the dates already in text format but Numbers says the fields are 'Custom' and shows the dates in US format: 11/04/2011, even although my Mac is set to UK format. No matter, I can set the cells to text format, however that results in the date being shown as 04/11/00002011.
    Where did those extra zeros in the year come from!?
    How can I reformat the dates to the dd/mm/yyyy format as text?
    I've tried a couple of formula to create a new column
    =Year(A1)
    for example and I think I could recreate the date  like that, but the cell must be text format.
    DG

    Here is the script required to peek dates from Numbers then poke them in Numbers.
    --{code}
    Apply this script to a Numbers table containing :
    B2 : 1943/12/31 23:59
    B3 : 1789/07/14
    B4 : 2010/01/01 00:12
    B5 : = NOW()
    set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
              repeat with r from 2 to 5
                        set thenumbersdate to value of cell r of column 2
                        set value of cell r of column 3 to thenumbersdate as text
                        set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
                        tell cell r of column 4
                                  set format to text
                                  set value to thenumbersdate as text
                        end tell
                        tell cell r of column 5
                                  set format to text
                                  set value to short date string of thenumbersdate
                        end tell
              end repeat
    end tell
    --=====
    set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
    set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
    Handlers by Nigel GARVEY
    http://macscripter.net/viewtopic.php?id=36449
    (* Convert an ISO-format date string to an AppleScript date. *)
    on isotToDate(isot)
              set n to (text 1 thru 8 of isot) as integer
              set ASDate to (current date)
              tell ASDate to set {day, year, its month, day} to {1, n div 10000, n mod 10000 div 100, n mod 100}
              if ((count isot) > 8) then
                        set n to (text 10 thru 15 of isot) as integer
                        set ASDate's time to n div 10000 * hours + n mod 10000 div 100 * minutes + n mod 100
              end if
              return ASDate
    end isotToDate
    --=====
    (* Transpose an AppleScript date/time from the given time zone to GMT. *)
    on TZtoGMT(TZDate, TZ)
      -- The difference between TZDate when it's local and the GMT date we want is usually
      -- the same as the difference between the local date when TZDate is GMT and TZDate itself …
              set GMTDate to TZDate - (GMTtoTZ(TZDate, TZ) - TZDate)
      -- … but not around the time the clocks go forward. If the GMT obtained doesn't reciprocate to TZDate,
      -- shift to a nearby local date where the above DOES work, get a new GMT, unshift it by the same amount.
              set testDate to GMTtoTZ(GMTDate, TZ)
              if (testDate is not TZDate) then
                        if (GMTDate > testDate) then -- "Clocks forward" is towards GMT.
                                  set shift to GMTDate - testDate
                        else -- "Clocks forward" is away from GMT.
                                  set shift to -days
                        end if
                        set nearbyDate to TZDate + shift
                        set GMTDate to nearbyDate - (GMTtoTZ(nearbyDate, TZ) - nearbyDate) - shift
              end if
              return GMTDate
    end TZtoGMT
    --=====
    (* Transpose an AppleScript date/time from GMT to the given time zone. *)
    on GMTtoTZ(GMTDate, TZ)
      -- Subtract date "Thursday 1 January 1970 00:00:00" from the GMT date. Result in seconds, as text.
              copy GMTDate to date19700101
              tell date19700101 to set {year, its month, day, time} to {1970, 1, 1, 0}
              set eraTime to (GMTDate - date19700101)
              if (eraTime > 99999999) then
                        set eraTime to (eraTime div 100000000 as text) & text 2 thru 9 of (100000000 + eraTime mod 100000000 as integer as text)
              else if (eraTime < -99999999) then
                        set eraTime to (eraTime div 100000000 as text) & text 3 thru 10 of (-100000000 + eraTime mod 100000000 as integer as text)
              else
                        set eraTime to eraTime as text
              end if
              return isotToDate(do shell script ("TZ='" & TZ & "' /bin/date -r " & eraTime & " +%Y%m%dT%H%M%S"))
    end GMTtoTZ
    --=====
    --{code}
    Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 14:14:26
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How do I export Dates from Numbers to iCal?

    I'm building a spread sheet in *Numbers '08* with +expiration dates+ for many of the line items. I would like to export those dates to iCal so that iCal can _show/send me a reminder on those dates_. I've read that some people may be using a program called Bento to interface between Numbers & iCal. Seems like one should not have to buy an entire software program to export a simple date from Numbers to ICal -- both being native Apple programs.
    Perhaps there is a way to get Numbers to send date reminders without exporting to iCal?
    Any feedback is much appreciated.

    Here is the script doing the trick with Numbers '09.
    --[SCRIPT createical_events_fromNumbers'09]
    Enregistrer le script en tant que Script : createical_events_fromNumbers'09.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner les cellules d'une table de Numbers qui décrivent des 'events'
    La table est censée contenir:
    une colonne avec la description des événements
    une colonne avec les date_heures de début
    une colonne avec les date_heures de fin
    Éditer la property 'theCalendar' en fonction du nom du calendrier à alimenter.
    menu Scripts > Numbers > createical_events_fromNumbers'09
    Le script crée les évènements dans iCal
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: createical_events_fromNumbers'09.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    In a table from Numbers '09,
    select cells describing 'events'.
    This table is supposed to embed :
    a column storing events descriptions
    a column storind start datetime
    a column storing end datetime.
    Edit the instruction defining the calendar name to fit your needs.
    menu Scripts > Numbers > createical_events_fromNumbers'09
    The script will create new events in iCal.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    This script creates new events from the content of selected cells from a Numbers '09 table.
    --=====
    example:
    event #1 18 avr. 2010 05:35 19 avr. 2010 15:35
    event #2 19 avr. 2010 05:35 20 avr. 2010 15:35
    event #3 20 avr. 2010 05:35 21 avr. 2010 15:35
    event #4 21 avr. 2010 05:35 22 avr. 2010 15:35
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/03/25
    --=====
    property theCalendar : "Personnel"
    property nbItemsPerEvent : 3
    --=====
    on run
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    set colNum2 to colNum1 + nbItemsPerEvent - 1
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    repeat with r from rowNum1 to rowNum2
    set eProps to {}
    repeat with c from colNum1 to colNum2
    copy (value of cell r of column c) to end of eProps
    end repeat -- with column
    Now, eProps contains
    - the event description
    - the start date_time
    - the end date_time
    my makeEvent(eProps)
    end repeat
    end tell -- Numbers
    end run
    --=====
    on makeEvent({descr, sDate, eDate})
    tell application "iCal"
    make new event at the end of events of (every calendar whose name is theCalendar) with properties {description:descr, start date:sDate as text, end date:eDate as text, allday event:true}
    end tell
    end makeEvent
    --=====
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
    apply to named row or named column !
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) jeudi 25 mars 2010 22:50:17

  • How to put continuos (desired format) of dates in numbers spreadsheet and how to do it? please reply asap i need it..

    how to put continuos (desired format) of dates in numbers spreadsheet and how to do it? please reply asap i need it..

    This is the definition for "continuo" from Apple's dictionary:
    continuo |kənˈtinyəˌwō | (also basso continuo) noun (pl. continuos) (in baroque music) an accompanying part that includes a bass line and harmonies, typically played on a keyboard instrument and with other instruments such as cello or bass viol.
    Presumably you mean something else. Your chances of getting replies that can help you will improve with a clearly stated question.
    SG

  • Double character input error when entering data in numbers using Bluetooth keyboard.

    Using a bluetooth keyboard (Logitech) sometimes causes a double character input when entering data in numbers.
    For example if wish to enter the number "22" or the word "in" they become "2222" and "iinn". Pressing enter of tab also causes a double jump
    This problem is not always solved by turning keyboard off and on or by closing down and restarting numbers.
    This problem does not occur in any other app.
    I have used 2 different Logitech keyboards (ultra-slim and the recently new folio keyboard) and both caused the same problem.
    The error is sporadic but frequent and has lead to me often having to switch back to touch input.
    Very frustrating considering these excellent keyboards are ideal for using in numbers when working correctly!
    ANy advice would be much appreciated

    Zombie,
    Not much help I'm afraid, but I just saw your post & wanted to let you know that I have the same problem, but for me it manifests itself in many apps, and it happens with the Apple bluetooth keyboard
    . The only thing I've noticed is that it only seems to happen when I first start typing after not using the keyboard for a while (I'm not sure how long a while is, but maybe 30 seconds or so). Then I'll type & the first few letters will be fine, and then one letter double-types, and then it's fine again until I stop using it for whatever the threshold amount of time is. I'm guessing that it has something to do with the iPad's battery management & that it's shutting off the connection to the keyboard or something & once it picks it back up, then it double-types that letter.
    At least in Pages, it isn't as big of a deal because I know it's coming, I can correct it & then type for a long time. In Numbers, my keyboard use is much less consistent, so I need to be more cognisant of it.

  • All my stored data in Numbers are gone. What do I do?

    All my stored data in "Numbers" are gone. What do I do?

    every workbook is gone, data in one workbook is gone? Cant open a workbook, any workbook? Please be a little more specific as to the circumstances so we can try to help out.
    Thanks
    Jason

  • Hi everybody! How can I transpose data in numbers?

    Hi everybody! How can I transpose data in numbers?

    If you don't want to go to all the trouble of setting up formulas each time you do this, and making sure the new table is the correct dimensions in the destination table, etc, just run this Automator Service.  (Dropbox download)
    After double-clicking the .workflow package to install (you may need to click 'Download Anyway' in System Preferences > Privacy & Security) it will look something like this in your Services menu:
    After that one-time, one-minute setup, all you have to do to use it is select the range you want to transpose, choose 'Copy Transpose' from the menu, click once in a cell where you want the transposed values to appear, and type command-v or option-shift-command-v to paste.  This is similar to (though slightly different from) what one does in Excel.
    To remove or rename the Service, in Finder hold down the option key and in the menu Go > Library > Mobile Documents > com~apple~Numbers and delete or rename the way you would any item in Finder.
    You can view the short AppleScript the service contains by opening it in Automator.
    SG

  • Catagorizing Data in Numbers.

    I need to catagorize a year's worth of credit card data but cannot group data in Numbers 3.0.1 so switched to Numbers '09 but found there was catagorizing limited of 500 cells! Any work around or do I have to buy Excel? Other ideas? Being able obtain group totals is very useful. Why does Apple ignore this essential feature?
    Paul Fishman

    I may need to get a database. Used Provue Panorama in distant past and had no trouble digesting this kind of data.
    Hi Paul,
    If you want a no-formula approach, where you can quickly see totals together with the data underlying them, then Excel pivot tables or Panorama may be the easiest for you.
    However, Numbers 3.0 or 2.3 can easily handle the extraction of category sums for 1000 or so rows if you don't mind entering a few formulas and it's acceptable for your purposes to display the sums separately from the underlying data.
    To do that you would proceed as shown in my post upthread, for which Jerry describes a subset.  You can find a good example of this formula-based technique in the Personal Budget template (File > New) in Numbers 3.0, which takes entries in a transactions table and summarizes them by category (column C of the Summary by Category table), very similar to what you describe as what you are trying to do.
    SG

  • Cannot insert date into numbers 3.1 using ctl shift d

    can no longer insert date into numbers 3.1 using control shift d

    Hi Gerald,
    If you are inserting the current date a lot, and want a simple keyboard combination to do it rather than fiddling with formulas in Numbers, here is an easy way that takes advantage of some neat functionality built into every Mac that is much easier than it sounds.  It requires the investment of just a few minutes of time to make a one-time setup of an "Automator service."  Thereafter inserting a date is just a menu pick or keyboard combination.
    1. Open Automator (in your applications folder) and choose Service as document type:
    2. Drag 'Run AppleScript' action from the left over into the right pane:
    3. Copy the following script and paste it into the right pane (replacing all of the default text in the pane):
    on run
              set date_ to ((current date) as string)
      set the clipboard to the date_
              tell application "Numbers"
      activate
                        tell application "System Events"
      keystroke "v" using {option down, shift down, command down}
                        end tell
              end tell
    end run
    4. At the top of the right pane choose 'no input' for 'Service receives' and 'Numbers.app' for 'in'. (On my machine I have the old Numbers renamed to Numbers09 so the script doesn't get confused).
    After you click the hammer icon (to "compile") your right panel should now look like this:
    5. Name the service "Today" or similar and move it to the Library > Services folder. (If it doesn't save automatically to that location you can File > Export in Automator, choose the 'Desktop' for 'Where', then in Finder open a new window and hold down the option key and choose Go > Library > Services, and drag Today.workflow from the Desktop into that folder.)
    That's it. The service is ready to go. Thereafter, whenever you want to insert the current date, just pick Today from the Services menu:
    6. Or, to make this even easier to access, choose Services Preferences and assign a keyboard shortcut to the service:
    SG
    Troubleshooting notes:
    This should "just work." But if it doesn't for some reason, try one or more of the following:
    - Rename the old Numbers (the one in the iWork '09 folder under Applications) to Numbers09 or similar.
    - Check to make sure you aren't using the same keyboard shortcut for something else.
    - Remove 'Day of the week' from your "Full" date format in System Preferences > Language & Region.
    - Try revising permissions under System Preferences > Security & Privacy > Accessibility > Privacy.

  • How do I continue with running dates in numbers?

    How do I continue with running dates in numbers?  Using numbers with dates and need to have them autofill across instead of my typing them in manually.

    Hi jonles,
    Type a date then press enter. Click once on that cell and hover the cursor over the right hand side of the cell. This will show the Fill handle (yellow dot). Drag it to the right.
    That will fill by adding a day to each cell.
    To create a series, enter two dates (e.g. 1 Jan then 8 Jan). Select both and drag right to create a weekly series.
    Regards,
    Ian.

Maybe you are looking for

  • 4/28/2015 - Beta - Flash Player 18.0.0.107

    The latest Flash Player 18 beta builds are now available.  Beta builds can be downloaded from labs.adobe.com. New Features for Flash Player 18: Improve Flash Player Install Process We have had consistent feedback from our customers that they prefer n

  • How to find list of users logged in from past 3 months

    Hi, How can i get the list of users accessed oracle database from past 3 months. I tried select username,LOGON_TIME from v$session ; From v$session can we get all the users logged in from past 3 months? Thanks,

  • What to do? Used all 5 approvals

    Hi, I'm having problems playing the songs I've bought for iTunes. Since I have used all 5 og my approvals, iTunes won't let me play them. Am I all out of options, or is there a magic cure?

  • Creative Zen Nano Plus audio line-in recor

    Im planning to buy Creative Zen Nano Plus GB. . Does Creative Zen Nano Plus audio line-in recoreder offer excellent quality of sound music when you record a certain music through a CD player's line-in? 2. Please rate the quality of recorded sound mus

  • How to remove standard buttons on Custom Control?

    Hi ABAPers, How to remove the standard buttons that are appear on custom control and also how to remove the description of line column details. Because in my requirement I have to create one custom infotype in which I have to add four custom controll