Wrong today's date on calendar

Hi
Today's date on my ipod touch is 08 jan 1970. This is wrong, what should i do?
+
ontacts did no synchronized. What should I do?
thks

Quote from http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf
Date and Time
These settings apply to the time shown in the status bar at the top of the screen, and in world clocks and calendars.
Set whether iPod touch shows 24-hour time or 12-hour time: Choose General > Date & Time, then turn 24-Hour Time on or off. (24-Hour Time may not be available in all countries or regions.)
Set the date and time: Choose General > Date & Time. Tap Time Zone and enter the name of a major city in your time zone. Tap the “Date & Time” button, then tap “Set Date & Time” and enter the date and time.

Similar Messages

  • Af:chooseDate always shows wrong selection (today's date)

    Hi,
    I'm using 10.1.3.3. I think that the af:chooseDate component has a serious usability problem: it's always showing today's date as currently selected, although the related af:selectInputDate component is refreshed correctly. This is true even:
    - after any number of clicks (selections),
    - after changing the month back and forth,
    - when using different types (Date, Calendar, String) of bound variables (e.g. in a session bean),
    - when the bound variable has a default value,
    - when triggering additional PPR refresh event for the component (just to be sure that it's refreshed).
    Does anybody have any ideas how to make it work correctly? This behaviour is very confusing for the users and I really need to use this component instead of a popup window offered by af:selectInputDate.
    Thanks in advance,
    Patrik

    Frank, I think that's just another description of the problem. Though it does not have a state, it knows about the input field - so the selection should be refreshed via PPR or JavaScript. In case anybody is interested, here is the JS i wrote to solve this.
    // Mark clicked day as selected in an af:chooseDate component
    function markClickedDayAsSelected(e) {
        var eventSourceElement;
        if(e==null) {
            eventSourceElement = event.srcElement; //IE
        else {
            eventSourceElement = e.target; //FF
        if (eventSourceElement.className != "x4r" && eventSourceElement.nodeName == "A") {
            var days = document.getElementById("formId:chooseDateId").getElementsByTagName("tbody")[0].getElementsByTagName("tr")[1].
    getElementsByTagName("td")[0].getElementsByTagName("table")[0].getElementsByTagName("tbody")[0].getElementsByTagName("span");
            for (var i=0; i<days.length; i++) {
                var d = days;
    if (d.className=="x4r") {
    // Move innerHTML outside of SPAN.x4r (into A) and remove SPAN.x4r
    var newInner = d.innerHTML;
    var appendToNode = d.parentNode;
    appendToNode.innerHTML=newInner;
    break;
    // Move innerHTML into a new SPAN.x4r inside A
    var newSpan = document.createElement("span");
    newSpan.className="x4r";
    var inner = eventSourceElement.innerHTML;
    newSpan.innerHTML=inner;
    eventSourceElement.innerHTML="";
    eventSourceElement.appendChild(newSpan);
    Regards,
    Patrik

  • I have a 4s...today, for no apparent reason, I am missing data including, calendar appts, notes, contacts and maybe other things that I am not aware of right now.  I did nothing to cause this.  Any ideas on how to restore?

    I seem to have lost a significant amount of data from calendars (ll appts are gone), notes (a good percentage are gone) and contacts (more than 50% are gone).  I have done nothing to cause this.  Any ideas how I might restore everything?

    try turning the phone off and then back on it worked for me.

  • What is wrong with my Data Guard system?

    What is wrong with my Data Guard system(10g10.2.0 on OEL5.0)? What method should I take to diagnose it and repair it?
    After shutting down last night, my Data Guard does not run normally today.
    On the primary database I issue the following commands:
    DGMGRL> show configuration verbose;
    Configuration
    Name: sdb10g
    Enabled: YES
    Protection Mode: MaxAvailability
    Fast-Start Failover: ENABLED
    Databases:
    sdb10g - Primary database
    stdby10g - Physical standby database
    - Fast-Start Failover target
    Fast-Start Failover
    Threshold: 30 seconds
    Observer: hostp
    Current status for "sdb10g":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> show fast_start failover;
    show fast_start failover;
    Syntax error before or at "fast_start"
    SQL> startup
    ORACLE instance started.
    Database mounted.
    ORA-16649: database will open after Data Guard broker has evaluated Fast-Start
    Failover status
    On the physical standby database I issue the commands:
    SQL> startup mount
    ORACLE instance started.
    Database mounted.
    SQL> recover managed standby database disconnect;
    Media recovery complete.
    DGMGRL> show configuration verbose;
    Configuration
    Name: sdb10g
    Enabled: YES
    Protection Mode: MaxAvailability
    Fast-Start Failover: ENABLED
    Databases:
    sdb10g - Primary database
    stdby10g - Physical standby database
    - Fast-Start Failover target
    Fast-Start Failover
    Threshold: 30 seconds
    Observer: hostp
    Current status for "sdb10g":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> disable fast_start failover;
    Error: ORA-01034: ORACLE not available
    Failed.
    Message was edited by:
    frank.qian
    null
    null

    The primary database cannot be opened and the fast_start failover cannot be discabled:
    SQL> SQL> ALTER DATABASE open
    ERROR at line 1:
    ORA-16649: database will open after Data Guard broker has evaluated Fast-Start
    Failover status
    DGMGRL> disable fast_start failover;
    Error: ORA-01034: ORACLE not available

  • My iphone 3gs has started showing the wrong time  and date. All was fine until this afternoon when it changed.  My apps have the right time and date. However the world clock is wrong. I have to turn off the automatic time setting to get the right time.

    My iphone is showing the wrong time and date. All was well until sometime this afternoon when it changed...  to Nov 5 (2 days prior to today), and about 9 hours and some minutes before the actual time.  The world clock for my time zone shows the same wrong date and time. My calender shows the same wrong date and time.  The phone can not find my time zone any more.   The only fix I found was to turn off the automatic setting for time.  What is  happening? Ideas?

    just sorted mine went to
    settings-mail,contacts,calender-timezone support
    then turned it off then on tapped time zone and typed london
    this did sort mine

  • Date query doesn't show results for today's date

    Hello everyone. I use Jdeveloper 11.1.1.3.0 with ADF and I have a view named query with just one field, Date. The operator it is using is equal to a value written in the field. The problem is that when I insert a row into the table (the date is automatically set to the current date on insertion) and I look for today's date it returns nothing. However if I leave the field empty it will find me the row. I tried doing this with the timestamp option but it's not very user friendly as the user would have to type in the time the row was inserted in order to find it, or use the between operator for two fields which is something I want to avoid if at all possible
    The requirement is one field query that lets the user choose a date from a calendar and shows all rows inserted on that date (even if the date is today and the row was inserted a few minutes before).
    Edited by: Dino2dy on Apr 6, 2011 2:50 AM

    Dino2dy,
    My guess is that the data being stored in the DB has a time component associated with it (as it would if you were using something like SYSDATE to populate it). When you are trying to look for data with today's date, you are checking just for the date - which in Oracle is the equivalent of midnight on the start of the date. The dates don't match because the time is different.
    Either store the date with no time component (use TRUNC to remove the time), use a BETWEEN comparison, or TRUNC the date when comparing.
    John

  • I want today's date as delivery date.................

    hi,
    sap gurus,
    good morning to all,
    Before transportation module configuration
    for Eg; if today is the day of sales order creation my schedules lines in that order use to show today's
    date is the date of delivery automatically.
    after transportation module configuration the same schedule lines is showing 13 days after only you
    can deliver the goods.
    where i did wrong in configuration settings
    please let me know
    regards

    Dear Balaji
    I think u r working on IDES, hope u know that when the schedule line is determined, the system carries out Backward Scheduling and or forward Scheduling, accordingly the delivery date is confirmed.
    Now various factors to be considered in Scheduling are - Transportation Planning Time, Material Staging Time, Pick/Pack Time, Loading Time,
    These time duartions are maintained in  IMG  -  LE - Shipping - Basic Shipping functions - Scheduling - Define Scheduling by shipping pt. - Maintain duration
    U can also activate / Deactivate scheduling for the Sales Doc here only in ' Scheduling by Sales Doc Type'
    Again how the Loading Time and Pick/Pack time is to be determined is defined here in 'Scheduling by Shipping Point'
    Hope this helps u.

  • Get today's date?

    I have an XML dataset that shows a schedule of events.  My page uses a yui calendar widget to get the events for specific selected days.  On load, the page shows all "events" that are listed in the XML file.  I am trying to set up a filter that will only show the events for today and days after today, on loading.  How do you set a variable to have the value of today's date, without explicitly typing in "10/30/2009?"  I don't want to call the filterData() function, because I still want to see what was scheduled in the past by selecting the dates in the calendar.  Any ideas would be greatly appreciated.
    Here is my code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryDataExtensions.js" type="text/javascript"></script>
    <script src="yui/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
    <script src="yui/2.6.0/build/calendar/calendar-min.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryDOMUtils.js" language="javascript" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsEvents = new Spry.Data.XMLDataSet("schedule.xml", "events/event", {sortOnLoad: "date", sortOrderOnLoad: "ascending"}  );
    dsEvents.setColumnType("date", "date");
    dsEvents.setColumnType("@id", "number");//-->
    </script>
    <link href="yui/2.6.0/build/fonts/fonts-min.css" rel="stylesheet" type="text/css" />
    <link href="yui/2.6.0/build/calendar/assets/skins/sam/calendar.css" rel="stylesheet" type="text/css" /></head><body>
    <div id="Schedule">
      <div id="yuicalendar1"></div>
      <script type="text/javascript">
    // BeginWebWidget YUI_Calendar: yuicalendar1   (function() {
        var cn = document.body.className.toString();
        if (cn.indexOf('yui-skin-sam') == -1) {
          document.body.className += " yui-skin-sam";
      var inityuicalendar1 = function() {
        var yuicalendar1 = new YAHOO.widget.Calendar("yuicalendar1");    // The following event subscribers demonstrate how to handle
        // YUI Calendar events, specifically when a date cell is
        // selected and when it is unselected.
        // See: http://developer.yahoo.com/yui/calendar/ for more
        // information on the YUI Calendar's configurations and
        // events.
        // The YUI Calendar API cheatsheet can be found at:
        // http://yuiblog.com/assets/pdf/cheatsheets/calendar.pdf
        //--- begin event subscribers ---//
        yuicalendar1.selectEvent.subscribe(selectHandler, yuicalendar1, true);
        yuicalendar1.deselectEvent.subscribe(deselectHandler, yuicalendar1, true);
        //--- end event subscribers ---//
    yuicalendar1.render();
      }  function selectHandler(event, data) {
      // The JavaScript function subscribed to yuicalendar1.  It is called when
      // a date cell is selected.
      // alert(event) will show an event type of "Select".
      // alert(data) will show the selected date as [year, month, date]. 
      var formattedDate = data[0][0][1] + "/" + data[0][0][2] + "/" + data[0][0][0];
      var dateFilterFunc = function(dsEvents, row, rowNumber)
    if (row["date"].search(formattedDate) != -1)
       return row; // Return the row to keep it in the data set.
    return null; // Return null to remove the row from the data set.
      dsEvents.filter(dateFilterFunc); // Filter the rows in the data set.
      };  function deselectHandler(event, data) {
      // The JavaScript function subscribed to yuicalendar1.  It is called when
      // a selected date cell is unselected.
      };      // Create the YUI Calendar when the HTML document is usable.
      YAHOO.util.Event.onDOMReady(inityuicalendar1);
    // EndWebWidget YUI_Calendar: yuicalendar1
      </script>
    <div spry:region="dsEvents">
      <table cellpadding="2" id="Events">
        <tr>
          <th spry:sort="name">Name</th>
          <th spry:sort="date">Date</th>
          <th spry:sort="starttime">Start Time</th>
          <th spry:sort="endtime">End Time</th>
          <th spry:sort="location">Location</th>
          <th spry:sort="type">Type</th>
          <th spry:sort="contact">Contact</th>
          <th spry:sort="@id">Id</th>
        </tr>
        <tr spry:repeat="dsEvents">
          <td>{name}</td>
          <td>{date}</td>
          <td>{starttime}</td>
          <td>{endtime}</td>
          <td>{location}</td>
          <td>{type}</td>
          <td>{contact}</td>
          <td>{@id}</td>
        </tr>
      </table>
    </div>
    </div>
    </body>
    </html>
    And here is my XML file:
    <?xml version="1.0" encoding="utf-8"?>
    <events>
    <event id="1">
      <name>Dreamweaver CS4 Intermediate</name>
      <date>10/15/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 1</location>
      <type>Training</type>
      <contact>Contact 1</contact>
    </event>
    <event id="2">
      <name>InDesign CS4 Advanced</name>
      <date>10/14/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Training</type>
      <contact>Contact 1</contact>
    </event>
    <event id="3">
      <name>Flex CS4 Data Services</name>
      <date>10/15/2009</date>
      <starttime>1:00 pm</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Meeting</type>
      <contact>Contact 2</contact>
    </event>
    <event id="4">
      <name>Another Dreamweaver CS4 Intermediate</name>
      <date>10/30/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 1</location>
      <type>Training</type>
      <contact>Contact 1</contact>
    </event>
    <event id="5">
      <name>Another InDesign CS4 Advanced</name>
      <date>10/29/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Training</type>
      <contact>Contact 3</contact>
    </event>
    <event id="6">
      <name>Another Flex CS4 Data Services</name>
      <date>10/28/2009</date>
      <starttime>1:00 pm</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Meeting</type>
      <contact>Contact 2</contact>
    </event>
    </events>

    Hi,
    Here is my code for attaching the event highlighting to the YUI calendar.  It is triggered via an observer everytime the SpryData region markup containing the event tooltips is regenerated on my first tab.  I've also include the code I wrote for adding tooltips based on SpryData. Note I amended the Sprytooltip.js dataset to speed up the rendering based on the tip Arnout gave me
    One thing I do which is not the default for YUI calendar is I namespace my calendar so I can access it whilst doing my Spry stuff.
    YAHOO.namespace("cal");
    YAHOO.cal.yuicalendar1 = new YAHOO.widget.CalendarGroup("yuicalendar1","yuical1group", {PAGES:12,START_WEEKDAY:1});
    var myObserver = new Object;
    myObserver.onPostUpdate = function(notify, data)
    // Get Spry Data into rows variable
    rows = Events.getData();
    // Yahoo YUI stuff
    YAHOO.cal.yuicalendar1.removeRenderers();
    for (var i = 2; i < rows.length; i++)
      // Convert in date format range that yui calendar recognises
      var s = new Date(rows[i]["StartDate"]);
      s = s.getMonth() + 1 + '/' + s.getDate() + '/' + s.getFullYear();
      var e = new Date(rows[i]["EndDate"]);
      e = e.getMonth() + 1 + '/' + e.getDate() + '/' + e.getFullYear();
      var cald = s + '-' + e;
      // Add highlight to range of cells   
      YAHOO.cal.yuicalendar1.addRenderer(cald, YAHOO.cal.yuicalendar1.renderCellStyleHighlight1);
        // Now add tool tips
    // Build array of contiguous dates based on HMC events
    // Now cycle through HMC events  
      eventDates = [];
      for (var r=2;r<rows.length;r++)
        startDate = new Date(rows[r]["StartDate"]);
        endDate = new Date(rows[r]["EndDate"]);
        while (startDate <= endDate)
         startDatestr = todayFormat(startDate);
           eventDates[startDatestr] = r;
         startDate.setDate(startDate.getDate() + 1);
    // cycle through each of the 12 months.
    for (var c=0;c<=11;c++)
        addTipFast(c);
    // now render
    YAHOO.cal.yuicalendar1.render();
    function addTipFast(c)
       // reference to calendar
       var calDate = new Date();
       var cal = YAHOO.cal.yuicalendar1.pages[c];
       var calID = cal.id;
       var calDates = cal.cellDates
       var selector = 'table#' + calID + ' td[class~="calcell"]'
       // return array reference to table cells that make up calendar
          tds = Spry.$$(selector);
       // Search for match on event table
         for (var r=0;r<calDates.length;r++)
        tYear = calDates[r][0];
        tMonth = calDates[r][1];
        if (tMonth == 0)
         tMonth = 12;}
       else
        tMonth = tMonth - 1;
        tDate = calDates[r][2];
        calDate.setFullYear(tYear,tMonth,tDate);
        nDate = todayFormat(calDate);
        if (eventDates[nDate] > -1)
         toolid = 't' + eventDates[nDate];
         var myele = new Array;   
         myele[0] = tds[r];
         var t = new Spry.Widget.Tooltip(toolid,myele,{offsetY:25});
    Spry.Data.Region.addObserver("tooltips", myObserver);
    The tooltips is a div region containing all my tooltips for the calendar and generated from my SpryData Events data
    <div id="tooltips" spry:region="Events">
            <div spry:repeat="Events" id="t{ds_RowNumber}" class="tooltipContent hide"> {Title} </div>
          </div>
    I generate a unique id for each tooltip that I can use with the tooltip widget when attaching the triggers from the calendar as above. It uses the spry data row number to achieve this.
    Hope this helps you with your highlighting and tooltips if you want them. Note I ignore my first two events for highlighting as their start and end dates spans years and just represent club stuff that happens every week. Otherwise initialise your i variable with var i = 0; in the loop.
    Just noticed if I use the calendar nav controls it drops the tooltips.  I'll need to add a YUI render event notifier to pick that up.
    Cheers
    Phil

  • Difference Between 0CREATED_ON and Today's date

    Hi Experts,
    I am new to BW and I have to accomplish the following requirement.
    We have a characteristic 0CREATED_ON and when the report is run we need to calculate the difference between today's date and 0CREATED_ON. Can you please advice on the best possible way to achieve the same. If it could be broken into the logical steps, it would be a great help!!
    Thanks for the help in advance.
    Regards
    PG

    Hi Piyush,
    When you create the query make sure  that  characteristic Created on is in rows . Select all other characteristics and keyfigures in your query as per your requirement. Now
    Step 1. Create a formula variable by replacement path on Created_on lets say FVCRON .
    Step2. Activate the business content variable "Formula Variable for Current Calendar Day - 0F_ADAY " . If it is already active you should be able to see in your formula variable list.
    Step3. create a Calculated Keyfigure  0F_ADAY - FVCRON .
    If you need individual steps on how to create formula variable or to activate business content variable or how to create a variable using customer exit let me know.
    Vijay .

  • Hide/disable a row of a list when "date" column is less than today's date.

    Hi,
    We are using a "Finalsubmitted" date column in my list. my requirement is once that date of Finalsubmitted column is expired(less than today's date), total row should be in hide/disable mode.Could you help me to achieve this.
    Thanks.

    that is a drop down, showing the results from another list based on our selection.
    We have used SP services for that.
    But, date conversion is wrong on  var pubdate= new date(dateselected.value) line.
    It is showing "NaN(Not a number)" . date format it is giving DDMMYYYY.
    But, i need MMDDYYYY. How can we convert in JavaScript.
    Plz check below code.
    <script language="javascript" type="text/javascript">
    $(document).ready(function()
    today = new Date();
    getTagFromIdentifierAndTitle("select","Lookup","Dates").onchange = function() {ChangeEvent1()};
    function ChangeEvent1()
    var dateSelected = document.getElementById("Dropdown ID");
    var pubdate = new Date(dateSelected.value);
    if(pubdate<=today)
    $("input[value$='Save']").attr('disabled', true); //button hides
    alert("Publishing Date should be greater than Today's Date");
    else
    $("input[value$='Save']").attr('disabled', false); //button shown
    function getTagFromIdentifierAndTitle(tagName, identifier, title) {
    var len = identifier.length;
    var tags = document.getElementsByTagName(tagName);
    for (var i=0; i < tags.length; i++) {
    var tempString = tags[i].id;
    if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length - len)) {
    return tags[i];
    return null;
    }</script>

  • Add date on Calendar

    I try to create the code below. today is 7/2/07, but when I -2 days it shows 6/31/07. but there is no such a date. what do I do to make it go to 6/30/07?
    Calendar now = Calendar.getInstance();
    Calendar calendar;
    calendar = (Calendar) now.clone();
    //date of calendar is 6/2/07
    calendar.add(Calendar.MONTH, 1);
    //date of calendar is 7/2/07
    calendar.add(Calendar.DAY_OF_YEAR, -2);
    //date of calendar is 6/31/07

    I had to change EST to PST time and was not able to find method to do that so I created one dateAdd().
    To add date you need to pass date as string in the format yyyyMMddHHmmss, string date part such as y, M, d, h, m, or s and positive or negative integer to get future or past date. You can change date format in the code and then you will pass according date string, or add parameter to specify format for your date. Ok, you got the idea.
    import java.text.SimpleDateFormat;
    import java.text.DateFormat;
    import java.util.*;
    private String dateAdd(String sDate, String sPart, int i){
    DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
    Date d1 = new Date ();
    String sStr = "";
    if (StringUtils.isNumeric(sDate)){
    if (sDate.length()>13){
    System.out.println("sD = " + sDate);
    sStr = sDate.substring(14);
    sDate= sDate.substring(0,14);
    }else{
    sDate = StringUtils.rightPad(sDate, 14, "0");
    try{
    d1 = df.parse(sDate);
    Calendar cal = Calendar.getInstance();
    cal.setTime(d1);
    if(sPart.equals("s")){
    cal.add(Calendar.SECOND, i);
    else if(sPart.equals("m")){
    cal.add(Calendar.MINUTE, i);
    else if(sPart.equals("h")){
    cal.add(Calendar.HOUR, i);
    else if (sPart.equals("d")){
    cal.add(Calendar.DAY_OF_MONTH, i);
    else if(sPart.equals("M")){
    cal.add(Calendar.MONTH, i);
    else if(sPart.equals("y")){
    cal.add(Calendar.YEAR, i);
    sDate = df.format(cal.getTime())+ sStr;
    } catch (Exception ex) {
    ex.printStackTrace();
    return sDate;
    Enjoy dateAdding.
    Thank you.

  • Clearing today's date otherwise insert today's date

    Sorry for the bad title. I'm trying to insert today's date by default, but I want the user to be able to change it. If they leave the field blank, I want acrobat to reinsert today's date. What's wrong with my code?
    var val = this.getField('Day').value;
    var today = util.printd("d", new Date());
    if( val == today)
        val = "";
    if( val = "" )
        val = util.printd("d", new Date());
    this.getField('Day').value = val;

        OnFocus -> Run a Javascript
    if( this.getField("Month").value == util.printd("mm", new Date()) )
        this.getField("Month").value = "";
         OnBlue -> Run a Javascript
    if (this.getField("Month").value == "")
        this.getField("Month").value = util.printd("mm", new Date());
        OnFocus -> Run a Javascript
    if( this.getField("Year").value == util.printd("yyyy", new Date()) )
        this.getField("Year").value = "";
         OnBlue -> Run a Javascript
    if (this.getField("Year").value == "")
        this.getField("Year").value = util.printd("yyyy", new Date());

  • How to use GregorianCalendar to get today's date?

    I am using the following code to get today's date? I'm curious whether there is a direct way for GregorianCalendar to get today's date?
    Thanks,
    java.util.Date today = new java.util.Date();
    Calendar cal_today = new GregorianCalendar();
    cal_today.setTime(today);
    System.out.println(" month = " + cal_today.get(Calendar.MONTH));
    System.out.println(" day = " + cal_today.get(Calendar.DAY_OF_MONTH));
    System.out.println(" year = " + cal_today.get(Calendar.YEAR));

    If you mean construct it with todays date and time, sure. Just call the contructor with no arguments. According to the API...Constructs a default GregorianCalendar using the current time in the default time zone with the default locale.

  • Get item Greater than and equal to today's date...

    Hi,
    We are having issue in getting item greater than today's from SharePoint List. We have a column in list with Date and Time Data type.
    I am using below code to get data greater than and equal to today's date.
    SPQuery query = new SPQuery();query.Query = "<Where><Geq><FieldRef Name='Expires' /><Value Type='DateTime'>"+ DateTime.Today.ToShortDateString() + "</Value></Geq></Where>";
    SPListItemCollection listItemCollection = list.GetItems(query);
    Please suggest what is wrong in above query.
    Regards,
    Amit Chhatbar

    Hi Amit,
    I guess the date is expected to be in UTC and ISO 8601 format. Use the below code and check if it works.
    DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ")or DateTime.Today.ToString("yyyy-MM-ddTHH:mm:ssZ")
    Ram Prasad Meenavalli | MCITP | MCTS SharePoint | MCPD SharePoint | http://www.spdeveloper.co.in

  • Date Picker Icon ideas - one click to populate today's date

    Hey everyone
    I've searched the forum, and did not find any threads related to these ideas. Hopefully, I'll be able to explain. Currently, in order to populate date, one has to click on the date picker, and then click on the number.
    Idea number one: how to make the entire square corresponding to the date clickable? One has to align cursor EXACTLY on the number. I don't see why the entire area couldn't be "live."
    Idea number two: Is there a way to modify the date picker so that it has an arrow, or some designated target area which would IMMEDIATELY populate today's date, without having to launch the calendar itself. I review number of records daily and "sign off" on them by entering date reviewed. It sure would be handy to have this feature.
    Thanks in advance for any suggestions.
    Vojin

    Leo:
    that's not a bad idea - and we've implemented default value for a date on other pages/locations. However, this page is used by other staff, whom update many other items on the page. If we set that date as a default for today, anytime someone commits a page, the date column would be erroneously populated, as if I've already reviewed it.
    Vojin

Maybe you are looking for

  • Product-sku-output-config.xml - Is there a schema definition (XSD or DTD)?

    For the product-sku-output-config.xml file (used to define the set of product and sku attributes that are sent to Endeca from ATG as part of the Baseline Index process, as defined in chapter 4 of the ATGEndecaIntegrationGuide.pdf, 10.1.2 version), is

  • Add Additional IP Addresses to WAN Interface on SRP527W

    Hi, Can anyone tell me how to add an additional IP addresses to the WAN interface on a SRP527W. We are connecting to an ISP which assigns us a static IP address with our ADSL account. We also have another 2 additional WAN IP addresses that we have pu

  • Ranking Order oming payments

    Hi, Now we have a situation. We are running the payment program for incoming payments. We have two banks: 1. Citi bank 2. HSBC bank There is no house bank data maintained in the customer master. Customers can make payments to any of these bank accoun

  • Upgrade iPhoto 8 to iPhoto 11

    For personal reasons I wiped my computer clean and reinstalled Snow Leopard. I didn't remember it at the time but apparently I was using iPhoto 11. Now I can not open my current library because the Snow Leopard install came with iPhoto 8. I read that

  • TS4085 So iTunes on Macbook Pro is streaming to my AppleTV

    . . . . yet AppleTV does not appear as a mirror option on my iPad 2. Mirroring had been working on my iPad2 until today. Any recommendations on how to debug this problem? (Firewall is clearly not the problem . .)