Skip to Content
author's profile photo Former Member
Former Member

date format in Smart Form

Hi to all!

I would like to change the format of date fields in a smart form. How may I do this?

Thanks,

Istvan

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:32 AM

    using edit mask or write to statments

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      store ur date into one varible of type charecter whoose width equal to ur date width i.e 10 char .and format ur date as ur wish using offset and length.

      data dat(10) type c value '22:11:2007'.

      data day(2) type c .

      data mon(2) type c.

      data yea(4)type

      day = +0(2)dat.

      mon = +4(2)dat .

      yea = +7(4)dat .

      concatenate mon ':' day ':' year into dat .

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:35 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:46 AM

    Hi,

    By default Smartforms will format the date for the recipient country of the form, based on the address. If you want to change this or use for example the month name rather than number you will need to declare a global variable for your formatted field and populate this in an ABAP node. There you can use regular ABAP to reformat the date.

    Regards,

    Nick

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 09:54 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.