Date Formats

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #126322
    Chris Gandolfo
    Participant

    Can you please post the accepted date and time formats here? The link on the settings page under the Date(s) field doesn’t work.

    We would like to run a sale from 12:00 am on October 31 to 11:59 pm on November 3rd and are looking for the correct format.

    Thank you.

    #126406
    Moshtafizur
    Moderator
    Plugin Support

    Hi Chris,

    I am really sorry to know you are experiencing problems.

    I have escalated this with our development team. They will get back to you as soon as they can.

    Kind regards,
    Moshtafizur

    #126529
    Tom Anbinder
    Moderator
    Plugin Support

    Hi, Chris,

    The link on the settings page under the Date(s) field doesn’t work.

    Thank you for pointing it out – will fix it in the next plugin version.

    We would like to run a sale from 12:00 am on October 31 to 11:59 pm on November 3rd and are looking for the correct format.

    I think what you need is:

    October 31 00:00:00 - November 3 23:59:59

    Can you please post the accepted date and time formats here?

    The “Date(s)” option must be set as date range(s) in from - to format, i.e., dates must be separated by the hyphen - symbol, e.g.:

    14.02.2021 15:00 - 26.02.2021 15:00

    You can add multiple date ranges separated by the semicolon ; symbol, i.e., from1 - to1; from2 - to2; .... The algorithm stops on the first matching date range.

    Dates can be set in any format parsed by the PHP strtotime() function. However, don’t use the hyphen - symbol – it’s reserved for separating from and to values.

    Examples

    Enable discount on the exact dates:

    14.02.2021 15:00 - 26.02.2021 15:00

    Enable discount only before 3:00 PM each day:

    00:00:00 - 14:59:59

    Enable discount only before 3:00 PM each day, or before 5:00 PM on Mondays:

    00:00:00 - 14:59:59; Monday 00:00:00 - Monday 16:59:59

    Enable discount for the summer months only:

    first day of June - last day of August 23:59:59

    Enable discount for February only:

    first day of February - last day of February 23:59:59
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.