How to change the date in everytime?

How I am supposed to change from the original date to new date?
For example:
This is what I am going to put it in "comment.txt" this is how look like this below in file:
Today is 2003-09-02.
Go shopping next Tuesday.
Meet with my friends every Thursday.
I need to type input: start 2003-09-01 end 2003-09-03
The output will be:
+2003-09-02 Today's date+
+2003-09-04 Meet with my friends+
+2003-09-01 Meet with my friends+
+...+
+...+
How I am supposed to write the date? This is my first time to do date to change. Please help me how to do it. I know how to write the input/output codes.

artist_tech07 wrote:
How I am supposed to change from the original date to new date?
For example:
This is what I am going to put it in "comment.txt" this is how look like this below in file:
Today is 2003-09-02.
Go shopping next Tuesday.
Meet with my friends every Thursday.
I need to type input: start 2003-09-01 end 2003-09-03
The output will be:
+2003-09-02 Today's date+
+2003-09-04 Meet with my friends+
+2003-09-01 Meet with my friends+
+...+
+...+
How I am supposed to write the date? This is my first time to do date to change. Please help me how to do it. I know how to write the input/output codes.JavaWorld has some articles on working with dates and times that might interest you:
http://www.javaworld.com/jw-12-2000/jw-1229-dates.html
http://www.javaworld.com/javaworld/jw-03-2001/jw-0330-time.html
http://www.javaworld.com/javaworld/javaqa/2001-10/01-qa-1005-dateformat.html

Similar Messages

  • How to change the date format?

    Hi,
    I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
    Here is my code snippet which i used to display the data format as(2009-1-9)
    *<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()">  (YYYY-MM-DD)*
    *<SCRIPT LANGUAGE="javascript">*
    dateSubmitted()
    *</SCRIPT>*
    function dateSubmitted()
                        if (document.pgUpdate.date_submitted.value == "")
                             date = new Date();     
                             month = date.getMonth() + 1     
                             document.pgUpdate.date_submitted.value =
                                            date.getYear() + "-" + month + "-" + date.getDate();
                        return true;
    Can anybody help me how to change the date format?
    Thanks in advance!

    prit123 wrote:
    use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
    Please use forums devoted to Javascript. You're here at a Java/JSP forum.
    There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
    String formatPattern = "yyyy-mm-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
    sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well.

  • How to change the date and time during OVM installation for Fusion Apps

    Hi,
    The customer is using Fusion Instance which is a V1 (Build 19) OVM installation shipped by Oracle with Demo Data (including seeded user IDs and roles) in it.
    Now they have issue with Date format for the application on the screens is showing MM/DD/YYYY where as it should be (Singapore) Standard is DD/MM/YYYY.
    Q/A: How to change the date/time in OVM image
    Refer SR : 3-5640792461
    Regards
    Ganesh Ananthapadmanaban

    Not a problem. There are a number of other system and network setup commands that you might find useful at some time. From within the Remote Desktop Admin in the Send Unix Command window type:
    networksetup -help
    systemsetup -help
    That will give you lists of the commands, including the one I posted above, with their basic syntax. They're handy to know.
    Cheers.

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • How to change the date format  YYYYMMDD to MM/DD/YYYY

    Hi ,
    How to change the date format  YYYYMMDD to MM/DD/YYYY .
    Ex :  20071008  to 10/08/2007
    Is there any function module for this ??
    Regards
    Rahul

    Hi Sharma,
    check the code:
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-031.
    PARAMETERS: date1 RADIOBUTTON GROUP rad1 DEFAULT 'X', "SAP date format YYYYDDMM
    date2 RADIOBUTTON GROUP rad1, "Date format like aprial31, 2006
    date3 RADIOBUTTON GROUP rad1, "Date format like 31 apr,2006
    date4 RADIOBUTTON GROUP rad1, "Date format like DD/MM/YYYY
    date5 RADIOBUTTON GROUP rad1. "Date format like DD.MM.YYYY
    SELECTION-SCREEN END OF BLOCK b2
    FORM getmonth .
    SELECT mnr
    ktx
    ltx
    INTO TABLE T_month
    FROM t247
    WHERE spras = 'EN'.
    IF sy-subrc NE '0'.
    MESSAGE I "Message - Not able to get month values from the table T247
    ENDIF.
    ENDFORM.
    DATA : temp_date(16) TYPE c,
    temp1_date(60) TYPE c,
    year(4) TYPE c,
    daymonth(11) TYPE c,
    daymonth1(11) TYPE c,
    month(9) TYPE c,
    day(2) TYPE c,
    mon LIKE t247-ktx,
    len TYPE i .
    MOVE date TO temp1_date .
    CONDENSE temp1_date NO-GAPS.
    MOVE temp1_date TO temp_date .
    IF date2 EQ 'X'. "The date format is like Aprial 31, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    _len = STRLEN( _daymonth1 ).
    l_len = 13 - len.
    SHIFT daymonth1 RIGHT BY len PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    SORT t_month BY monthltx.
    READ TABLE t_month WITH KEY monthltx = month.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    len = STRLEN( month ).
    CONDENSE daymonth NO-GAPS.
    SHIFT daymonth LEFT BY len PLACES.
    day = daymonth.
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date3 EQ 'X'. "The date format is like 31 apr, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT i_date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    SHIFT daymonth1 LEFT BY 2 PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    TRANSLATE month TO UPPER CASE.
    SORT t_month BY monthstx.
    MOVE month to mon.
    READ TABLE t_month WITH KEY monthstx = mon.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    CONDENSE daymonth NO-GAPS.
    day = daymonth+0(2).
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date4 EQ 'X' OR p_date5 EQ 'X'. "Date format is like DD.MM.YYYY or DD/MM/YYYY
    CONDENSE temp_date NO-GAPS.
    IF STRLEN( temp_date ) EQ 10.
    o_date0(4) = temp_date6(4).
    o_date4(2) = temp_date3(2).
    o_date6(2) = temp_date0(2).
    ELSE.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ENDIF.
    ENDIF.
    IF STRLEN( o_date ) NE '8'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ENDIf.
    ENDFORM. " f0100_conv_date
    Reward if helpful.
    Regards,
    Harini.S

  • How to change the Data sources after deploying the application ??

    Hi All,
    i want to know how to change the Data sources after deploying the application to the application server ???
    I'm using Oracle Application Server 10g Release 3 (10.1.3.1.0)

    Can you access the Enrprise Manager website of the target Application Server from your location? If so, you can change the datasource in it. If not, yo can bundle the datasource definition in your archive and use that one instead of the one configured in the target OC4J container. Or this will just be the responsability of your customer: whenever you send a new WAR file, they have to modify the datasource if needed and deploy the application?

  • How to change the data type in the table ESLL for the field USERF2_NUM ?

    Hello Friends,
    I have a requirement in which one of the change is to convert the data type of the field 'USERF2_NUM' in the table 'ESLL'  from 'QUAN' to 'CHAR'. 
    How do i do it if i have an access to change it..........i think i should also check the impact of the change if done.
    Kindly tell me as my requirement starts with this small change.
    Regards,
    Rajesh Kumar

    Thanks for the reply Sowmya.
    I would like to know 2 things.
    1. Is it ok to change the data type of the field 'USERF2_NUM '  which is in the table ESLL. from quan to char.
    2.  The table ESLL  already has entries. if we change the data type from QUAN to CHAR what is the  effect on the existing entries of the table .
    Kindly reply me back.
    Thanks & Regards,
    Rajesh Kumar

  • How to change the date value in FM SD_CUSTOMER_HIERARCHY_PATH

    Hi,
    I have one requirement while creating sales order the pricing herarchy should be
    based on the date mentioned in the Delivery date. Generally the pricing hierarchy
    happens based on system date.
    So how to get the hierarchy based on the date mentioned in the delivery date ?
    I analysed in debugging if I change the date field in debugging mode in the function module
    SD_CUSTOMER_HIERARCHY_PATH then i am getting the pricing hierarchy based on the desired date
    other then system date.
       CALL FUNCTION 'SD_CUSTOMER_HIERARCHY_PATH'
               EXPORTING
                    CUSTOMER        = lvf_knvh_kunnr
                    DATE            = SY-DATLO -
    > Desired Date menioned
                    HTYPE           = fif_hityp
                    SALES_CHANNEL   = fis_sdorgdata-vtweg
                    SALES_DIVISION  = fis_sdorgdata-spart
                    SALES_ORG       = fis_sdorgdata-vkorg
               IMPORTING
                    CUSTOMER_HZUOR  = lvf_customer_hizuor
               TABLES
                    HPATH           = lvt_hierarchy_partners
               EXCEPTIONS
                    HITYP_NOT_EXIST = 1
                    NODE_NOT_EXIST  = 2
                    PARVW_NOT_EXIST = 3
                    OTHERS          = 4.
    The Field for delivery date I mentioned is RV45A-KETDAT and this value is not appearing in this
    position of function module.
    Can any one have Idea to change the hierarchy based on the desired date other than system date.
    Waiting for kind response.
    Best Regards,
    Bansidhar

    Hi,
    I have one requirement while creating sales order the pricing herarchy should be
    based on the date mentioned in the Delivery date. Generally the pricing hierarchy
    happens based on system date.
    So how to get the hierarchy based on the date mentioned in the delivery date ?
    I analysed in debugging if I change the date field in debugging mode in the function module
    SD_CUSTOMER_HIERARCHY_PATH then i am getting the pricing hierarchy based on the desired date
    other then system date.
       CALL FUNCTION 'SD_CUSTOMER_HIERARCHY_PATH'
               EXPORTING
                    CUSTOMER        = lvf_knvh_kunnr
                    DATE            = SY-DATLO -
    > Desired Date menioned
                    HTYPE           = fif_hityp
                    SALES_CHANNEL   = fis_sdorgdata-vtweg
                    SALES_DIVISION  = fis_sdorgdata-spart
                    SALES_ORG       = fis_sdorgdata-vkorg
               IMPORTING
                    CUSTOMER_HZUOR  = lvf_customer_hizuor
               TABLES
                    HPATH           = lvt_hierarchy_partners
               EXCEPTIONS
                    HITYP_NOT_EXIST = 1
                    NODE_NOT_EXIST  = 2
                    PARVW_NOT_EXIST = 3
                    OTHERS          = 4.
    The Field for delivery date I mentioned is RV45A-KETDAT and this value is not appearing in this
    position of function module.
    Can any one have Idea to change the hierarchy based on the desired date other than system date.
    Waiting for kind response.
    Best Regards,
    Bansidhar

  • Photos out of order. How to change the 'Date Taken' date on ipod touch?

    Since updating to ios8, some of my camera photos have randomly changed their dates to 2015. Does anyone know how I can change the date on these back so that they appear in the right sequence?

    Yes. You can batch change those photos with the Photos->Batch Change->Date menu option. You an add a time differential between every photo so they will be chronologically sorted in the order you put them before changing the date.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Apple Remote Desktop - how to change the date and time server ip address?

    Our imacs keep getting out of synch with our Windows Active Directory server and when they do, users can no longer log into the imacs. The imacs this morning were more than 5 minutes fast, for example.
    So, we have changed the date and time server on one of our imacs to our internal time server and that works fine. Now I would like to update all of the other imacs using a unix command in ARD. Can anyone tell me how to send this change? For this message, let's say our internal time server is 172.30.100.100

    Not a problem. There are a number of other system and network setup commands that you might find useful at some time. From within the Remote Desktop Admin in the Send Unix Command window type:
    networksetup -help
    systemsetup -help
    That will give you lists of the commands, including the one I posted above, with their basic syntax. They're handy to know.
    Cheers.

  • How to change the dates for open enrollment

    Hi Experts,
    I am implementing ESS BP 1.0 on EP 7.0 SP11 ERP2005. In the benefits and payment workset, there is open enrollment process which is allowed between certain dates. How to change those dates in the backend system?
    Thanks!

    The open enrollment period dates can be changes under Benefits>Flexible administration>Define administrative parameters.
    Thanks

  • How to change the Data Foundation for an existing Business Element

    My Issue:
    I have quite a few reports that use the same Business View. The Business View has an under lying Data Foundation that uses a Dynamic Data Connection (DDC). I no longer want to use this DDC because production users are complaining they do not want to have to select a data source each time (multiple times when the report includes sub reports) they run/refresh their reports.
    The Holy Grail:
    I would like to change the Data Foundation that my Business Element layer is built upon and use another data foundation with identical tables, linking, and fields. The new data foundation would be using a production connection. This solves my immediate issue and has a great side benefit of providing a convenient way to promote reports from development to stage/test, to production and would not require production users  to have to select which environment they want their report to run against.
    I am logged in to BVM as administrator:
    When I look at the Business Element layer Property Browser,  I see a Data Foundation Property but is is disabled (such that it can not be changed).
    Is there a way to change the Data Foundation that is used by an existing Business Element layer ?
    I'd appreciate any help that someone can offer on this topic. Even if it is not possible and someone can shed some light on why this would not work or would not be a good idea, I'd be interested in learning

    Technically No the system will not allow you to change as it is involved with many depreciation areas and change is not permitted for control reason.
    You only need to retire the asset, reverse the postings, assign correctly and repost the values.

  • How to change the data in a chart using slider bar ?

    hi community,
       i have issue, i created one SDK extension slider bar based on that i want to change the data in chart.
    my requirement is like, i have month and some measures in a chart  i want to set month in a slider bar if am moving slider according to that values should be change in chart.

    You could try the following.
    Pull the month dimension values into an object, where each dimension value is assigned to a "numeric" (air quotes, actually a string) attribute.
    Something along the lines of:
    var myMonths = new Object();
    myMonths["0"] = <month0_key>;
    myMonths["1"] = <month1_key>;
    Then, you assign the range slider a set of numeric values, from 0 to n, where n is the last attribute in myMonths.  When the user changes the slider values and the OnChange is fired, use the numeric values of the current slider positions to get the appropriate range filter values out of myMonths.
    I've not tried this yet, so I don't yet know what pitfalls you'd run into.
    Cheers,
    Dave

  • How to Change the data type of infoobject from NUMC to CHAR

    Hi Experts,
    I have created an infoobject with data type as NUMC, i used in DSO as a key figure and i have loaded data up to PSA.
    Now i want to change the data type of this Info Object from NUMC to CHAR.
    Can anyone suggest me the solution for this issue.
    Regards,
    Venu Gopal.K

    Hi pavan/binu,
    I have not loaded data into DSO i just added IO in Key fields and i started editing this IO then im facing error like
    1.Master Data Table /BIC/PZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated     
    2.SID Table /BIC/SZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated
    Im also unable to edit the P & S tables in SE14.
    NOTE:I have data only in PSA and when im trying to load data to DSO Im facing these issues.

  • How to change the date path of Web Server to my system time?

    Hi,
    I have downloaded a Countdown SWF file from the Internet. It is working fine with the Computers which have Internet Connection. But not working without Internet connection because of the following line of code in XML file:
    <PHPurl>http://www.flepstudio.org/utilita/CountDown/gettime.php</PHPurl>
    When I opened the webpage using the above code, it shows time in a typical digits:
    Monday, October 18, 2010 9:12:52 PM in my System -shows in Web browser like : time=1287425579
    How to modify the code so that I can use my System time to work with Countdown without Internet Connection.
    The following is the path from where I have downloaded the Countdown file:
    http://www.flepstudio.org/forum/flepstudio-utilities/2960-flash-cs3-countdown.html
    Please help me to run this countdown without internet access.
    Thanks.

    It appears all that php file does is return a time=value variable.  So you need to see where that time variable is implemented in the Flash file and assign it a value using the Date.getTime() method instead of having the PHP file get called into play.  Look in the help documents or Google if you do not know how to use the Date class.

Maybe you are looking for

  • ORA-07445: exception encountered: core dump in Standby database

    Hello, This is Oracle 10.1.0 in a Logical Stanby database under Solaris9 The apply stopped with these errors and then it started by itself: LOGSTDBY status: ORA-16226: DDL skipped due to lack of support <date> Errors in <trace file> ORA-07445: except

  • Howto use methods inside itemRenderer

    Hi, I have basic itemRenderer made as component: <mx:Component id="ColorRenderer"> <mx:Label text="{rgb2hex(255,100,50)}" // This gives error: 1180: Call to a possibly undefined method rgb2hex /> </mx:Component> My method works if i use it with "norm

  • Graph values are plotted in float

    hi 1) When i try to display the graph the x and y axis are displayed in float 100.0 i need to display in integer value like 100. 2) i am trying to display a line graph now sure how many points i add when the value x axis increases the graph extends i

  • ITunes WON'T REINSTALL/UNINSTALL/INSTALL

    Hi,so I tried to reinstall iTunes a week ago since the iTunes I already had didn't open. When I saved the iTunes setup file and ran it an error popped out, "The configuration data for this product is corrupt. Contact your support personnel". Since I

  • Update keeps selecting a removable drive.

    Update keeps trying to select a removable drive to download to. How do I get the download to go to the C drive ?