Thread: Dates on iOS

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Dates on iOS

    I would like to change the date format from MM/DD/YYYY to Mmm dd, yyyy. I'm not sure if the format I wrote is right, I'm just trying to represent a date as in Jan 27, 2013.

    I have looked in the forum and the wiki and the closest I can find is changing the date to UK format.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Is it possible to change the date format?


  3. #3
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: Is it possible to change the date format?

    Thanks.

    I did that. I also used the UK Date Format plugin which it seems to be the contents of that page zipped into a plugin.

    This seems to be a lost cause. I'm just trying to modify the format so that it goes along with the iOS format when viewed from a mobile device.

    It would be ideal if I just added the html5 input type="date". This would display as follows:

    Click image for larger version. 

Name:	iOS Simulator Screen shot Jan 26, 2013 4.29.20 PM.png 
Views:	82 
Size:	61.3 KB 
ID:	11848

    As you can see in the picture, the date follows the month day, year format. I don't think I would be able to modify that date to the Zen Cart date format since I'm using jQuery Mobile and HTML5. Modifying iOS format requires Objective C.

    On the other hand, I'm inclined to use mobiscroll since it actually uses the Zen Cart format but I'm having an issue that I posted on the mobiscroll google code site since it is not a Zen Cart related issue.

    Using Mobiscroll (notice the date format)

    Click image for larger version. 

Name:	iOS Simulator Screen shot Jan 26, 2013 4.30.08 PM.png 
Views:	61 
Size:	54.2 KB 
ID:	11851

    If this does not work, I will either leave it as it is or use jQuery Mobile dateBox (see below).

    Click image for larger version. 

Name:	iOS Simulator Screen shot Jan 26, 2013 4.50.06 PM.png 
Views:	75 
Size:	42.7 KB 
ID:	11850

    Unfortunately, although dateBox works without any issues, it does not have, the functionality I'm looking for so that the DOB input look like any other date inputs such as the CC expiration date.
    Last edited by ultimate_zc; 29 Jan 2013 at 12:17 AM.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Is it possible to change the date format?

    Quote Originally Posted by ultimate_zc View Post
    I did that. I also used the UK Date Format plugin which it seems to be the contents of that page zipped into a plugin.
    OK, so what problems did you have when you 'did that'?
    Quote Originally Posted by ultimate_zc View Post
    This seems to be a lost cause.
    If that's the case, no point in even trying anything else is there. :)

    Cheers
    Rod.

  5. #5
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: Is it possible to change the date format?

    I take that back. Not a lost cause but a frustrating cause.
    Quote Originally Posted by RodG View Post
    OK, so what problems did you have when you 'did that'?
    The only problem I have is getting Zen Cart to accept the date in a different format. By reading this post I figured out the format I need which is
    PHP Code:
    %%e, %
    I'm also wondering if changing the format would create any problems with the database.

    Thanks for your help BTW.

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Is it possible to change the date format?

    Quote Originally Posted by ultimate_zc View Post
    I take that back. Not a lost cause but a frustrating cause.

    The only problem I have is getting Zen Cart to accept the date in a different format. By reading this post I figured out the format I need which is
    PHP Code:
    %%e, %
    So the problem is solved? OR, is it that you are using some kind of addon that supplies the date in a different format than what ZenCart is expecting?

    Quote Originally Posted by ultimate_zc View Post
    I'm also wondering if changing the format would create any problems with the database.
    The simple answer is no. Well, there have been no reported problems that I'm aware of.

    Cheers
    Rod

  7. #7
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: Is it possible to change the date format?

    No, I have not solved the problem since I don't know exactly where to make the change to the format from MM/DD/YYYY to
    PHP Code:
    %%e, %
    I don't know which file I need to make the change to.

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Is it possible to change the date format?

    Quote Originally Posted by ultimate_zc View Post
    No, I have not solved the problem since I don't know exactly where to make the change to the format from MM/DD/YYYY to
    PHP Code:
    %%e, %
    I don't know which file I need to make the change to.

    http://www.zen-cart.com/content.php?...-to-dd-mm-yyyy

    Cheers
    Rod

  9. #9
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: Is it possible to change the date format?

    I don't need to modify the language file in the admin since I'm just trying to override the date format for the DOB for when the user creates his/her account on a mobile device. On the template language file, I deleted the warning about the format since the format is given once the user taps on the date field.

    That same page you mentioned links to the page with the form I needed. Advanced zen date raw().

    Thanks for your help.

  10. #10
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: Is it possible to change the date format?

    I ran into the same problem when trying to change the format for the advanced search dates. They use the
    PHP Code:
    DOB_FORMAT_STRING 
    Do you know what files I should be looking at. I tried working with

    MY TEMPLATE > templates > tpl_advanced_search_default.php,
    pages > advanced_search > header_php.php,
    pages > advanced_search > jscript_main.php and
    pages > advanced_search_result > header_php.php

    but have not accomplish much there.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 iOS Add to Cart Prtoblem
    By lloyd_borrett in forum General Questions
    Replies: 6
    Last Post: 16 Nov 2015, 08:13 PM
  2. How to handle downloadable products with iOS, iPad, iPhone, etc??
    By lperrie in forum Managing Customers and Orders
    Replies: 14
    Last Post: 8 Jan 2012, 01:40 AM
  3. Dates on coupons?
    By mamasylvia in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 9 Mar 2008, 10:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg