How to make an app - Andromo App Maker

Announcement

Collapse
No announcement yet.

Date to Euro Format in Calendar Pluging

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Date to Euro Format in Calendar Pluging

    Hello,
    Need help :
    How can i obtain Date to Euro Format in Calendar Pluging (not in US Format) ?

  • #2
    Nobody has an idea?

    Comment


    • #3
      http://underpop.online.fr/a/autoplay...em.getdate.htm

      Comment


      • #4
        I find in an old post (AMS5) an idea.
        I'am not sure that it's the best way but it works.

        Pluging Calendar ==> OnSelect Event:
        PHP Code:
        -- convertion to Euro format
        strdate 
        e_StartDate
        year 
        String.Left(strdate4);
        month String.Mid(strdate62);
        day String.Right(strdate2);
        Euro_date = (day.."/"..month.."/"..year); 
        If you have a more elegant solution please post it!

        Alain

        Comment


        • #5
          Thanks curious1,

          But i'am not sure how to utilize DATE_FMT_EUROPE in Calendar Pluging.

          Comment


          • #6
            Originally posted by Alain View Post
            I find in an old post (AMS5) an idea.
            I'am not sure that it's the best way but it works.

            Pluging Calendar ==> OnSelect Event:
            PHP Code:
            -- convertion to Euro format
            strdate 
            e_StartDate
            year 
            String.Left(strdate4);
            month String.Mid(strdate62);
            day String.Right(strdate2);
            Euro_date = (day.."/"..month.."/"..year); 
            If you have a more elegant solution please post it!

            Alain
            this is likely to be the elegant solution that you are looking for , since the calendar plugin is back to front (year - month - day);
            ysing the string parsing method should suffice.. you will also need to convert back into yyyy-mm-dd format when interacting with the calendar plugin ofc.
            Iam not experienced enough to offer any better solution sorry. and glad you found at least a solution to your problem.

            Comment

            Working...
            X