locked
DateTime.Now server or client side? RRS feed

  • Question

  • User1043796333 posted

    When you use DateTime.Now,  in what side is exectuted: server or or client side?

    Wednesday, June 8, 2011 5:27 PM

Answers

  • User165519407 posted

    offcourse serverside,

    javascript date object will give u the client side

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 8, 2011 5:32 PM
  • User-330204900 posted

    Hi Topolov, in DD you would need to write some Client Side validation in JavaScript to enable Date validation on the client, the code you mention would only be executed on the Server as it's C#.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 9, 2011 6:49 AM

All replies

  • User165519407 posted

    offcourse serverside,

    javascript date object will give u the client side

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 8, 2011 5:32 PM
  • User1043796333 posted

    I'm not quite sure when it comes to Dynamic Data because of its intrinsic kind of validation in the client side. Calls greatly my attention if you're using Ajax that does a lot of its work on that side

    Wednesday, June 8, 2011 11:13 PM
  • User-330204900 posted

    Hi Topolov, in DD you would need to write some Client Side validation in JavaScript to enable Date validation on the client, the code you mention would only be executed on the Server as it's C#.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 9, 2011 6:49 AM