×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    2

    [WP8] [Calendar] Save an Appointment with my own date

    Hi guys,

    This is my first post here but I have heard a lot about this community !

    I need some help on my application. I want to add an appointement so I'm using the SaveAppointmentTask.
    But I want to use my own date and I did'nt really understood how to do it.

    Let me explain. In my app, I'm saving the birthdate of someone and then I want to add an appointement a this date in order to save his birthday date in the calendar.

    My questions are :

    How to do it when I'm using savAppointmentTask.StartTime.
    How to I have to write the date ? eg : 2013/05/26 or in an other way ?

    Thanks in Advance and sorry for my poor English.

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    295

    Re: [WP8] [Calendar] Save an Appointment with my own date

    Hello Sebepik and welcome,

    saveAppointmentTask.StartTime takes a DateTime as a value, if you want to give a specific date do it like this :
    for example : Mr X Y birthday in on 06/20 =>
    Code:
    saveAppointmentTask.StartTime = new DateTime(2013,6,20)
    how to write the date in 2013/05/26 format ?
    using a DateTime object
    Code:
    yourDate.ToString("yyyy/MM/dd")
    or
    Code:
    yourDate.ToShortDateString()

    Yassine,

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    2

    Re: [WP8] [Calendar] Save an Appointment with my own date

    Thanks it works !

Similar Threads

  1. Retriving time & date of an appointment
    By abhimanyu1 in forum Symbian
    Replies: 1
    Last Post: 2009-09-08, 10:58
  2. Calendar and Date format in J2ME
    By kimi007 in forum Mobile Java General
    Replies: 3
    Last Post: 2009-02-03, 22:14
  3. How can I delete a appointment in calendar
    By mozillaman in forum Symbian
    Replies: 1
    Last Post: 2008-10-31, 12:31
  4. additional info for calendar appointment
    By roidayan in forum Symbian
    Replies: 0
    Last Post: 2008-03-01, 11:52
  5. Date and Calendar
    By s01200994 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-03-04, 06:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×