SUI Time Calendar Date Format and Hours

Hi
In Fusion/HCM Cloud, the calendar in the Time page of SUI is currently displaying the date in the format MM/DD rather than DD/MM as per our user preferences. Does anyone know how to change this or know if it is a server setting?
Also, when booking absence (full day/elapsed time work schedule) the number of hours is showing 1.0 hours on the first and last day of the absence and then 7.0 hours for the other days in the calendar but this isn't configured anywhere.  This is showing correctly in the Availability Calendar within My Portrait. Does anyone know where these hours are coming from?
Any ideas appreciated.
Many thanks
Karen

Do you have a Date object or a String object?
If it's a String object, then just use split or replaceAll or substring (whichever you're most comfortable with) to get just the "2007" portion and then Integer.parseInt.
If it's a Date object, then it doesn't have a format, and you can just feed it to a Calendar and get the year.
Other than that was does "doesn't work" mean?

Similar Messages

  • How to change calendar date format

    Hi All,
    I want to change the calendar date format to YYYY-MM-DD . For that i did the changes in localedefinitions.xml file but the date format i am getting is YYYY-M-D (if the month and date is single digit no else i am getting YYYY-MM-DD).
    Example - 2010-9-1
    we need - 2010-09-01
    Which file we need to modify to get the date alway in YYYY-MM-DD format.
    Thanks..

    hi,
    How about this?
    http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
    or
    http://obieetalk.com/how-change-date-format-mask-date-dashboard-prompts-drop-down-list-and-calendar
    thanks,
    Saichand.v

  • Adding time into date format

    Hi
    Is there any easier way to add time value "now" into a date format with time value 00:00
    I managed to add the time
    Value(dateVariable)+(Value(Now())-Value(Today()))
    I just wander if there is any easiest way to do that or if there is any planed options for that?
    Thanks

    Hi Brutton
    I know about this. My scenario is that I use my custom date picker where user can pick a date. For easier date picking I use date format (today) and then adding day ,month or year into that so the date formant is in time 00:00. I
    need to add now time in that date so I can sort entry by date and also by time in a collection I managed to do that with the format mentioned above but I just wander if there is also any other way to do that. We already have excellent code DateAdd where we
    can add days months and years but I can't really add time with this code. I don't think that DateAdd can add time into date format or at least I haven't figure it out yet. If not there would be nice to have A TimeAdd code then instead of calculations

  • Calendar date format

    Helo, I have i question how to change calendar date format, for example now when i'm press on date i got 2014 May 28 how can I change that when i'm press on date i  will get 2014-05-28?

    Hi Edgaras
    For date formatting you can implement below mentioned code. Check the highlighted function
    template : new sap.ui.commons.TextView( {                                                                              textAlign : 'Left'}) .bindProperty("text",  {path: <field_name>,formatter: function(oValue){
    if (oValue) {  var d = new Date(oValue);                    
      return sap.ui.core.format.DateFormat.getDateInstance( {style:"full", pattern: "yyyy-MM-dd"}).format(d); }}} ),           
    Nabheet

  • Converting time stamp in SECONDS to a calendar date format.. problems

    Hello. I'm trying to convert a long interger that represents the number of SECONDS passed since the 1970 date
    the number was originally generated by php's mktime() function
    one of the numbers I have for example is this : 1126933200
    I haven't done the math but this is a date probably around september of 2005.. it's irrelevant anyhow.
    I want to convert this to a date format I can use in java. I've tried to create a new date like so :
    Date date = new Date(1126933200);
    I've also tried it with the calendar method like so :
    Calendar calendar = new GregorianCalendar();
    calendar.setTimeInMillis(1126933200);
    it was only then that I realized that both these methods require the number of MILLI seconds. So I tried doing a simple multiplication by 1000 on my original number and then I started getting a "integer number too large" error when trying to compile.
    so i'm kind of at a loss here.. i figure I could make a function myself that would divide my number in days of 86400 seconds.. and then i'd have to keep in mind the bisectal (sp) and the months with more and less days etc.. but i'm sure there must be an easier way.
    and i don't get why a method who's meant to receive a very long number is giving me an error when i try to give one to it.
    your help is appreciated as always. thanks

    Hello. I'm trying to convert a long interger that
    represents the number of SECONDS passed since the
    1970 date
    the number was originally generated by php's mktime()
    function
    one of the numbers I have for example is this :
    1126933200
    I haven't done the math but this is a date probably
    around september of 2005.. it's irrelevant anyhow.
    I want to convert this to a date format I can use in
    java. I've tried to create a new date like so :
    Date date = new Date(1126933200);
    I've also tried it with the calendar method like so
    Calendar calendar = new GregorianCalendar();
    calendar.setTimeInMillis(1126933200);
    it was only then that I realized that both these
    methods require the number of MILLI seconds. So I
    tried doing a simple multiplication by 1000 on my
    original number and then I started getting a "integer
    number too large" error when trying to compile.So you needed to add L to one of the numbers.
    Note you also need to define what timezone that seconds number represents.
    With Gregorian it is going to use the local timezone (the code here will anyways). The code using Date is using the UTC timezone.

  • Converting httpSession creation time to Date format

    I have the need to convert the value returned from httpSession.getCreationTime() to a Date format. The value returned from getCreationTime is long. I need to parse this value into 2 other fields. The first needs to be in year, month, day format. The second must give me the time in hours, minutes, seconds and milliseconds. Thanks in advance for any help you can give me.

    Simple:Date date = new Date(httpSession.getCreationTime())

  • Is there a way to change the Calendar date format in iCloud? It seems to default to the 'American' way even though on my iMac it is set to the 'British' way.

    My calendar in iCloud has the following format:
    1/12/2011 for the 12 January 2011
    I would like it to be as all my other Calendars were/are:
    12/1/2011 for 12th January 2011
    Any help gratefully accepted

    Welcome to the Apple Community.
    Click on the gear icon in the top right corner and select preferences from the menu that appears, you can adjust the date format from there.

  • Standard function for returninf time difference in days and hours.

    Hello all,
                Can somebody tell me whether there exists some standard function module which can calculate the time difference and returns the calculated time in the form of days and hours ?
    e.g. the time difference between the date 1.12.2007 from 7.00 pm to the date 1.1.2008 till 9.00 pm is
    30 days  and 2 hours or 30 : 2.
    answer as soon as possible.
    Thanks and regards,
    me

    Thanks a lot ya..
    thats an absolutely correct solution to my problem.  )

  • Problem with the Date format and sending it to R/3

    Hi all,
    I have an Adaptive RFC application which fetches the data from the R/3 and displays the Employee's Personal Data.
    I am using a ZFM which is customised as per the requirement from the Standard BAPI_EMPLOYEE_GETDATA.
    Now the Problem i am facing is Date is default and Optional Parameter in RFC.
    If i execute the RFC in R/3 without Date it is not filling the Internal Tables. And if i pass the Date it is filling the Internal Table and fetches the Records.
    So in WD application i am inputing Employee FirstName, LastName or the Employee ID.
    User can give any of the above input or combination of FirstName and LastName Or only the Employee ID.
    Now the Main Problem is of Date which is of type Date.
    I have also tried the SimpleDateFormat Class, but i am not able to achieve the result.
    I have also seen the Links and threads on SDN, but unable to solve the problem.
    So pls help me out asap.
    Thanks & Regards,
    Dhruv Shah

    Hi ,
    By default , RFC accept date format of SQL date (yyyy-mm-dd) . If you are using a date picker from WD, it directly set the date in SQL date format. Incase if you are trying to pass date to RFC in some other way you have to convert that into SQL date format before passing.
    if you are passing String date of format dd-mm-yyyy , you try this method to convert that to SQL date and pass to your RFC.
    public java.sql.Date sqlDateConvert( String date)  {
        //@@begin sqlDateConvert()
         java.sql.Date dateObj=null;
         try{     
              StringTokenizer tempStringTokenizer = new StringTokenizer(""+date,"-");          int dd=Integer.parseInt(tempStringTokenizer.nextToken().trim());
                                    int mm=Integer.parseInt(tempStringTokenizer.nextToken().trim());
              mm=mm-1;
              int yyyy=Integer.parseInt(tempStringTokenizer.nextToken().trim());
              Calendar cal =Calendar.getInstance();   
              cal.set(yyyy,mm,dd);                         
              dateObj = new java.sql.Date( cal.getTime().getTime());
         }catch(Exception e)
              return dateObj;
    Hope this will help you.

  • How to check the calendar date format in R12, 'IW' or 'WW' ??

    Hi!
    Currently we are facing any issue where the first date in 2014 is 6-Jan and remaining dates i.e; 2.3.4.5 Jan are in last week of Dec13.
    I read in Oracle Forums topic first dates in Oracle are based on IW and W W format as below;
    W W format - provides the week number such that January 1 is always in week 1
    'IW format - is a little different in that January 1 can be week 53 of the previous year if it is a Friday, Saturday or Sunday.
    But I am unsure in which format, our customers are maintaining the calendar dates in R12?? So is there any way/script find out the date format??
    They are using 4/4/5 calendar type and Prof option 'BOM: Wek or Period Start Day' is set to Monday.
    If this is not the right community for this discussion, please advise the right community as well.
    Please update!

    Hi,
    Try DATE_CHECK_PLAUSIBILITY FUNCTION.
    PARAMETERS : P_DATE LIKE SY-DATUM.
    START-OF-SELECTION.
    end-of-selection.
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
      EXPORTING
        DATE                      = P_DATE
      EXCEPTIONS
        PLAUSIBILITY_CHECK_FAILED = 1
        OTHERS                    = 2.
      IF SY-SUBRC <> 0.
        WRITE :/ P_DATE, ' is Invalid Date'.
      ELSE.
        WRITE :/ P_DATE, ' is a valid day'.
      ENDIF.
    If you want the OO way of doing the same, you can use this.
    CALL METHOD CL_RECA_DATE=>CHECK_DATE
      EXPORTING
        ID_DATE      =
    EXCEPTIONS
       DATE_INVALID = 1
       others       = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Internally, it calls the above function module.
    Regards,
    Ravi
    Note : Please close the thread, if the question is answered
    Message was edited by: Ravikumar Allampallam

  • How to set Date format and how to edit

    Hi all,
    I am supposed to select a date from calendar and put the date in a textfield in the format dd/mm/yyyy.
    Getting date from the calendar and putting it in textfield is not a big problem.
    Here I have to edit the date in the text field in such a way that clicking with a mouse on "dd" in the textfield dd part of the textfield should get selected and I should be able to edit date without affecting any other part in the textfield.Similarly clicking on the "mm" of text field,the mm part should get selected and i should be able to edit month without affecting other parts of the textfield and similarly the year field also.Here I should not be able to edit the "/" which is in between dd and mm, mm and yyyy.Is there any date format which i can set to textfield to achieve this.
    pls help me.
    this is urgent
    Thanx

    Can any one tell me how to make part of contents of textbox non editable and rest of the text editable???
    help me pls
    In the above dd/mm/yyyy format, "/" should be non editable and rest of the fields should be editable but can't be deleted.
    is it possible to achieve this...
    Pls respond............

  • ADF DVT's time Axis Date Format

    Hi, I've been working with DVT line graph and bar graph.
    Was able to display details and apply time selector.
    The details that can be displayed in the graph is dynamic, meaning the number of bars or columns that will be displayed in the graph can be smaller or bigger.
    I just noticed that the Date Format that appears in the X-Axis is not consistent, sometimes is display the dates as day (01, 02, 03.. etc.) then month under it.
    but sometimes the format is "mm/dd/yy". Is there a way to make the date format consistent?
    Thanks.

    hi experts, any idea please...

  • All calendar data disappeared and no TC backup calendar folder.

    All calendar data disappeared from two iphone5's, ipad 2, iMac and a PC simultaneously.  Apple folks are stumped.  Went to Time Capsule to look for calendar backups.  All iMac backups are there, but no calendar folder.  And suggestions or thoughts?

    Turned out that Apple tech support folks were the only solution possible.  Tried to restore calendar via TC, but calendar folder not visible and not instruction how to make it so.  New OS has made that folder not readily visible to the average, but tech support came up with a work around that is far too complicated to explain here.  Just give them a call.  Marvelous folks, and they live and work in the US of A!

  • TIME-ZONE date format..

    Hi, I need to store/display the 'time-zone' along with date-time information into a date column. Does anyone know what date-format i can use for the time-zone.
    Thank you very much for your help,
    sanjana.

    Hi Utpal,
    Thanks a lot! However, we are using Oracle version 8i at our project..i dont think 8i has these new datatypes. Do let me know if you think of anything else for v.8i
    Thanks very much,
    Sanjana.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by UTPAL DHAR ([email protected]):
    Hi Sanjana,
    I guess Oracle 9i has a few new DATE Datatypes called :
    TIMESTAMP Datatype
    TIMESTAMP WITH TIME ZONE Datatype and
    TIMESTAMP WITH LOCAL TIME ZONE Datatype
    You could use these datatypes to store/display the timezone along with the date-time information.
    I hope this information is useful to you.
    -Utpal Dhar<HR></BLOCKQUOTE>
    null

  • Date formats and etext templates

    I have been working with etext templates in the last few days and am struggling with date conversion. My XML file has dates in the format DD-MON-YY and my output requires DDMMYYYY. It seems that the format conversion in etext template only works when the xml date is in the format YYYY-MM-DD. I thought I would convert the DD-MON-YY using a combination of TO_DATE and TO_CHAR but TO_CHAR doesn't seem to accept the date mask in etext templates. It looks like I will have to modify the original report unless someone has a way to achieve this in the template.
    Thanks,
    Dave

    I had to change the report. You may be able to change the setup in the reports server to alter the default date format but I didn't want to do that in case it affected the output of any of the other reports that are being run. (N.B. I haven't tried this myself so not sure it can be done).
    The change to the report is pretty simple, I just added a formula column that took a copy of the standard column in the report and used to_char to reformat the date. In my case I reformatted to YYYY-MM-DD so that I could use the template to change the format to the required style. This is just in case there is a later change in the output style so I won't have to modify the report again.
    When the date in the XML is in the format YYYY-MM-DD the documented formatting options work (e.g. "Date , DDMMYYYY" would convert "2005-10-26" to "26102005").

Maybe you are looking for

  • Change date format in dashboard promt and calendar

    hi, do any one know how to change the date format when using the calendar option in dashboard prompt. As the user picks a date from the calendar the format becomes DD-MM-YYYY. The customer would like YYYY-MM-DD!! Any suggestions?

  • Append row (line) to coloum

    Dear All,           I have a internal table itab1 having plant wise 3 line,& want to append these 3 line to 3 rows to other internal table itab2. is it possible if yes please help. Thank's & Regard's     Atul

  • TS1368 Is Apple ever going to address this problem?

    For weeks now I cannot connect to iTunes. Nothing that Apple has said works. You are getting more Microsoft-like every day?

  • Blue print/realization

    Hi, There are CIT documents(probably called configuration input templates )  prepared in SAP. These documents involve the high level description of the scenario and then they consist of the configuration steps (menu path etc) and the data required to

  • Final Cut Pro Log and capture crash

    I keep getting this crash error everytime i open the "log and capture" window about 3 times, and after 3 times it just crashes? I have never had to use this before because i never used ape until now but i hope it's not final cut or my mac i just upgr