Announcement

Collapse
No announcement yet.

Date to Euro Format in Calendar Pluging

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

  • curious1
    replied
    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.

    Leave a comment:


  • Alain
    replied
    Thanks curious1,

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

    Leave a comment:


  • Alain
    replied
    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

    Leave a comment:


  • curious1
    replied

    Leave a comment:


  • Alain
    replied
    Nobody has an idea?

    Leave a comment:


  • Alain
    started a topic Date to Euro Format in Calendar Pluging

    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) ?
Working...
X