Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:38:12+00:00 2026-06-18T10:38:12+00:00

I am trying to add a dateTime edit box in an xPage and I

  • 0

I am trying to add a dateTime edit box in an xPage and I would like to show the date and time
with a specific pattern that I define. The pattern is “MMM d, yyyy HH:mm”. The date and time
appear in the desirable format when I open the xPage. The problem is caused when I select the checkbox “Use date/time picker pop-up”. After this change, the time is not displayed correctly. It is always 00:00. Is this a bug? Or do I need to configure differently the edit box in order to use the pattern I want and be able to add a data/time picker properly?

Any help will be highly appreciated.

Thanks a lot for your time!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:38:14+00:00Added an answer on June 18, 2026 at 10:38 am

    Yes, it’s bug. I have reported it to IBM support.

    You could use ExtLib Dojo Date and Time controls. There the problem is that there is a separate control for Date and Time and there is no built in way to save them in same item on document. You can do it with some SSJS though.

    I have used a reqular Date/Time Edit Box ja ExtLib Dojo Time Text Box. The edit box is set to show date only and bound to my Date/Time field on datasource form. The Dojo Time Text Box gets its default value from the same Date/Time item on document.

    In data source querySaveDocument event I have this code which adds the time to the date selected in date edit box:

    // When time field is empty we get Java Date.
    var dtDate:java.util.Date = getComponent("inpDT").getValue();
    var dtTime = getComponent("djTime").getValue();
    if (typeof dtTime == "lotus.domino.local.DateTime") dtTime = dtTime.toJavaDate()
    
    // Combine date and time.
    if (dtDate != null && dtTime != null) { 
        var dtDateTime:NotesDateTime = session.createDateTime(dtDate);
        dtDateTime.setLocalTime(dtTime.getHour(), dtTime.getMinute(), 0, 0);
        dominoDocument.replaceItemValue("DT", dtDateTime);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP date time Trying to add one second to a datetime that
Trying to add a 'box' to a form at design time, I looked up
I am trying to add a date time to a bigint field and then
I am trying to add the datetime object of a person. Whenever the birth
I'm trying to add a formatter to my Automapper configuration to style all DateTime?
I'm trying to create a form that will allow users to edit data. I
I'm trying to add event rich snippets to my site so that Google can
I'm trying to add some minutes to a date using plusMinutes, but it just
I'm trying to add an event to a specific calendar in google calendar and
I'm kinda confused right now with this function I'm trying to edit. I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.