Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
WebDateTime control displaying AM instead of PM
posted

Hi Techies,

 

I am using a webdatetime edit control ,  I am trying to save datettime in databse as PM. it saving correctly.

 

But when i try to display , it is showing as AM instead of PM. Please help me on this.

 

Thanks in Advance

Sreenivas

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    Hi Sreenivas,

    The "set" Value for WebDateTimeEditor, the DateTime object should be used or a string in "standard" date format used by dot-net: "yyyy-MM-dd-HH-mm-ss". Where HH is hours in 24-hour format. If to initialize Value in control, application uses string in different format, then to prevent misbehavior, it should convert string to DateTime object and then use that object to set Value of editor.

Children
No Data