• Resolved joy0114

    (@joy0114)


    Hello,

    Is there a way for getting expirydate in format d-m-Y rather than Y-m-d ?

    Thanks a lot.

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter joy0114

    (@joy0114)

    Well, sorry for noise… I should have looked better.
    For interested persons:
    Just swapping to d-m-Y in function mwb_wgm_check_expiry_date( $expiry_date )

    Have a good day.
    Best regards

    phaser32

    (@phaser32)

    Hijoy0114

    I changed in the file class-woocommerce_gift_cards_lite-public.php located in woo-gift-cards-lite/public/ and the file class-woocommerce_gift_cards_lite-admin.php located in woo-gift-cards-lite/admin/ all the value “Y-m-d” to “d-m-Y” but nothing happen.
    The format date is Y-m-d and there is no way to change it. It seems there is no way out.
    If someone could help me I’ll be very grateful.
    Warm regards
    Ale

    phaser32

    (@phaser32)

    I solved tha issue and I prefere to share the solution in case someone doesn’t find the correct file to edit.
    The file class-woocommerce-gift-cards-common-function.php located in the woo-gift-cards-lite/includes/ must be changed.
    You must change the format “Y-m-d” as You prefer.
    Hope this could helpful for someone.
    Warm regards
    Ale

    Is there any way to solve this without changing the core files? Some hook, filter, template file?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date format’ is closed to new replies.