Alpha Video Training
Results 1 to 2 of 2

Thread: International date xbasic help please

  1. #1
    Member
    Real Name
    Peter Caspari
    Join Date
    Feb 2012
    Posts
    194

    Default International date xbasic help please

    Hi,

    I have an app that supports users configured with "dd/MM/yyyy" and "MM/dd/yyyy" date formats using SESSION.__PROTECTED__CLIENTSIDEDATEFORMAT and fields display format set to time("{dialog.clientSideDateFormat}",<value>).

    I'm stuck on how to apply an xbasic date function like addmonths() when e.DataSubmitted.date could be in either format. Any suggestions?

    Thanks
    Peter

  2. #2
    Member
    Real Name
    Peter Caspari
    Join Date
    Feb 2012
    Posts
    194

    Default Re: International date xbasic help please

    Hi,

    Solved the problem in case anyone is interested. If there is a more elegant solution please let me know.

    dim ds as d
    dim ds2 as d
    dim j as n

    ds =time("yyyy-MM-dd",e.datasubmitted.AccPrdStart)
    j=e.datasubmitted.txtJump

    ds2=addmonths(ds,j)


    DateForw="{dialog.Object}.setValue('AccPrdStart','"+time(session.__protected__clientSideDateFormat,ds2)+"');"

Similar Threads

  1. international characters from onGridInitialize to <a5:r> tags
    By christappan in forum Application Server Version 11 - Web/Browser Applications
    Replies: 6
    Last Post: 04-10-2014, 06:50 AM
  2. International charaters
    By roblar in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 06-04-2011, 02:05 PM
  3. International character problem
    By jpeltola in forum Application Server Version 10 - Web/Browser Applications
    Replies: 4
    Last Post: 09-14-2009, 01:16 PM
  4. International Character Support
    By Trimcom in forum Alpha Five Version 6
    Replies: 1
    Last Post: 08-22-2004, 03:42 PM
  5. International Currency Symbol
    By David Anthony in forum Alpha Five Version 5
    Replies: 1
    Last Post: 09-30-2003, 04:51 PM

Bookmarks

Posting Permissions

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