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
2730
DataTime Picker
posted

I am trying to format the datetime picker to output or return  string format  "YYYYMMDD:HHMMSS"

 

Can someone assist me?

 

EndTime = ultraDateTimeEditorEndTime.DateTime.ToString();

EndTime should display  "YYYYMMDD:HHMMSS",

 

also when how to view time when you click a specific date, I want to be to pick a date and time from the calender

Parents
No Data
Reply
  • 53790
    posted

    Hello Keith,

    If you are using FormatString property of your UltraDateTimeEditor, maybe you should used:

    FormatString = "yyyyMMdd:hhmmss";

    If you want to get the value from your UltraDateTimeEditor in the mentioned format, maybe you could used:

    String.Format( "{0:yyyyMMdd HHmmss}", ultraDateTimeEditor1.Value)

    Please take a look at the attached sample for mre details and let me know if you have any questions.

    Regards 

    UltraDateTimeEditor.zip
Children