comparing CRM DateTime with the Today’s date

I have an example field on CRM account “new_lastupdated”.It is having DateTime format.
I will compare itwith the today’s date. If both are equal then a certain action can take place.Such kind of situation can be required in workflow assembly.In this example , i will be passingt he ID of an existing account.

Guid AccountId = new Guid(“7CD689B6-258C-DC11-A70B-000C29C6C877”);



account myaccount = (account)service.Retrieve(EntityName.account.ToString(), AccountId, new AllColumns());

if (DateTime.Today == DateTime.Parse(myaccount.new_lastupdated.Value.ToString ()))


// just for the sake of example , i will add on day in (new_update) date.

myaccount.new_lastupdated.Value = DateTime.Now.AddDays(1).ToString();




catch (System.Web.Services.Protocols.SoapException ex)




17 Responses to “comparing CRM DateTime with the Today’s date”

  1. 1 click through the following page May 7, 2013 at 12:27 am

    I say this because this was the only cab company that picked up the phone on the
    first ring. If you own a Black – Berry 9550 Storm 2, Black – Berry Curve 8530, Black –
    Berry Tour 9630, Black – Berry Storm 9530, Black – Berry Curve 8330, Black – Berry World 8830, Black –
    Berry Pearl Flip 8230, or Black – Berry Pearl Flip 8130, then you
    can listen to nearly a thousand songs on a single micro – SD card.

    Be comfortable in its open-air concept restaurant, where you might even sit in a table and look
    up to see stars in a clear night sky.

  2. 2 radio controlled airplanes uk May 12, 2013 at 4:08 pm

    “Worked All Zones Award” is the same concept with time
    zones. Regular workshops ensure that the
    staff at PVM Radio subdivision is not only up to
    date with the latest technological innovations, but also ensures that the customers
    from diverse backgrounds are offered the best possible services to suit their tastes.
    But mostly BBC Radios 4 and 5 because, being speech orientated, they’re more like what I do, so I can learn lots from them.

  3. 3 cx 22 radio universal May 12, 2013 at 10:03 pm

    “Worked All Zones Award” is the same concept with time zones.

    This means that everyone in the whole wide world can access
    this new kind of radio and you are assured that the programs as well as the list of radio stations
    you are listening to are all automatically updated. Another radio commercial production tip
    to chew on is to make sure the audio quality is excellent on any spot your produce.

  4. 4 Jayden May 13, 2013 at 8:41 pm

    After a long hectic busy day, games plays an important role to relax frayed nerves, scorched
    eyes and tired ears. Learn slowly and one at the time, don’t overwhelm yourself with information. Black – Berry’s version of this popular game is
    faster, smoother, and more exciting.

  5. 5 football coaching June 7, 2013 at 12:44 am

    Wow, this piece of writing is pleasant, my younger sister is analyzing these kinds of things,
    thus I am going to inform her.

  6. 6 marketing public relations advertising June 13, 2013 at 3:38 pm

    Hi there! I just wanted to ask if you ever have any issues with hackers?
    My last blog (wordpress) was hacked and I
    ended up losing months of hard work due to no data backup.
    Do you have any methods to prevent hackers?

  7. 7 wesela kraków June 16, 2013 at 9:24 am

    Hello Dear, are you in fact visiting this website
    regularly, if so then you will definitely obtain nice knowledge.

  8. 8 June 16, 2013 at 11:38 am

    Hurrah! After all I got a webpage from where I know how to genuinely get useful information regarding my study and knowledge.

  9. 9 chwilówka przez internet June 17, 2013 at 7:52 pm

    Wow, this paragraph is pleasant, my younger sister is analyzing these kinds of things, so I am going to inform her.

  10. 10 trening piłkarski June 21, 2013 at 1:30 am

    Hello to every one, the contents existing at this site are
    actually remarkable for people knowledge, well,
    keep up the good work fellows.

  11. 11 pozycjonowanie stron oferta June 22, 2013 at 8:30 pm

    At this time it appears like Movable Type is the best blogging platform out there right now.
    (from what I’ve read) Is that what you’re using on your blog?

  12. 12 pozycjonowanie trójmiasto June 24, 2013 at 2:21 pm

    When I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and from now on each time a
    comment is added I receive four emails with the same comment.
    There has to be a means you can remove me from that service?

  13. 13 pozycjonowanie stron firmy June 25, 2013 at 2:11 pm

    Awesome! Its genuinely amazing article, I
    have got much clear idea on the topic of from this article.

  14. 14 public relations online June 25, 2013 at 11:37 pm

    Amazing blog! Is your theme custom made or did you download it
    from somewhere? A design like yours with a few simple adjustements would really make my
    blog stand out. Please let me know where you got your theme.

    Appreciate it

  15. 15 hote June 29, 2013 at 3:23 pm

    When you arrive at your hotel, especially if the child becomes lost could wind up making a substantial difference in getting them back
    quickly. This amazing 5 night cruise departs from New York City and travels to the gorgeous rocks
    where they’re. It will regularly be your only accepted form of treatment as you found it.

  16. 16 kredyt samochodowy kalkulator rat July 1, 2013 at 2:35 pm

    This is a very good tip especially to those new to the blogosphere.
    Brief but very accurate information… Many thanks for sharing this one.
    A must read post!

  17. 17 Maricruz July 12, 2013 at 4:47 am

    Cake should be sturdy enough, but you can insert wooden
    dowels or toothpicks on each layer before icing. adsense_ad_unit += ‘

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 91,009 hits



%d bloggers like this: