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

  • Home
  • SEARCH
  • 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 8779171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:43:06+00:00 2026-06-13T19:43:06+00:00

I am using below jquery mobile datebox plugins for date control in mobile application.

  • 0

I am using below jquery mobile datebox plugins for date control in mobile application. It’s working fine with default date format. But I want to apply date format based on current culture setting whether it’s mobile phone or desktop. Based on device date format, date should be populated in the Date control.

<link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.min.css" />
 <script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.core.min.js"></script>
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.mode.calbox.min.js"></script>

I have tried with below approach.

jQuery.extend(jQuery.mobile.datebox.prototype.options.lang.default, { 'dateFormat': dformat , }); 

But it has two below mentioned limitation due to which I am unable to use this approach.
1) Not supported on iPhone 3/4 (safari 3.1.1 or below)
2) Date Format which is not compatible with Window format (it uses format like %d-%m-%y etc).

I want to utilize this plugin but it should provide the culture based date format selection.
Please provide your suggestion and let me know if you have any doubt.

  • 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-13T19:43:07+00:00Added an answer on June 13, 2026 at 7:43 pm

    Not sure if I really understood your question, but normally you could use the “override” options to inject directly the user culture. In one of my code once I detected the user culture I sue a script like below to do the work: (i update by htis way the header title, the date field order and the dateformat).

    In this code the “sDateFormat” set the right pattern following the user culture. And the “currentdatefield” is a jquery variable of a date field in my web form :

    currentdatefield.data("options", {
                        mode: "datebox",
                        useLang: varuserLocale,
                        useFocus: true,
                        useClearButton: true,
                        useCollapsedBut: true,
                        defaultValue: sDateForDefValue, /* defaultValue : this value must be a string formated in "yyyy-mm-dd" (not a JS object date) */
                        'overrideDateFieldOrder': DateFieldOrder,
                        'overrideHeaderFormat': vardateformat,
                        'overrideDateFormat': sDateFormat   /* Example: "%m/%d/%Y" This date format pattern is directly injected in the field linked */
                    });
                });
    

    Not sure, it’s help you but perhaps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an application using jQuery Mobile, Phonegap. The function below I get data
I am using below code to show jquery dialog, its working perfectly, Sub OpenDialog(ByVal
I am building an application for andriod/Iphone using jquery mobile ,html5 I need to
I am working on a simple web app using jquery mobile. I am attempting
I'm using jquery mobile link and i'm setting it like below: <a data-theme=a data-iconpos=notext
I am trying to build a JQuery Mobile application. I want this application to
I am using HTML5, jQuery 1.6.1, jQuery Mobile 1.0.1. I am using below code
I want to generate the Base64 encoded token using jquery plugins. function make_base_auth(username, password)
I am developing an application and im using jQuery mobile for the UI. Did
I'm developing a web application using jQuery Mobile on the client side and PHP

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.