How to Convert String into Date

Discussion in 'Tally Developer' started by Himanshu-2002, Aug 16, 2020.

    
  1. Himanshu-2002

    Himanshu-2002 Active Member


    I have a field which contains date in this Format: 12-08-2020T:13:01:05 So, If I Take Only 10 Characters From this Field Using $$StringPart Function and Then If I use it while creating vouchers Using Function So, It didn't Capture it as a Date But The Format is absolutely Right

    After Converting it Through $$StringPart the format is right but Don't know why it is not accepting this

    After Converting Format is : 12-08-2020
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Use $$Date:$fieldname
     


  3. Mukesh Garg

    Mukesh Garg Member


    sir how to auto complete to full date When type "15-11"or "15.11" or "15/11" it remains "15-11"or "15.11" or "15/11" not converted to full date 15-11-2021 plz help


    [Field : DeliveryDateType]
    Use : Long Date Field
    Set as : $$DDMMYYYYDateFormat:$Date:"-"
    Format : $$DDMMYYYY
    Storage : DeliveryDateStr2
    Width : 10
    Set Always : Yes
    Skip : $$InAlterMode
     

    Attached Files:

    Last edited: Nov 24, 2021


  4. Vijay Shetye

    Vijay Shetye Member



    There is no such format as $$DDMMYYYY and also there is no Long Date Field

    Instead of Long Date Field Use Short Date Field it will complete the date as required by you.

    Incase you have any query you can contact me on 9820309919 will help you out
     


  5. Mukesh Garg

    Mukesh Garg Member


    upload_2021-11-26_12-8-59.png upload_2021-11-26_12-8-59.png
     


  6. Vijay Shetye

    Vijay Shetye Member

    Mukesh Garg likes this.


  7. Mukesh Garg

    Mukesh Garg Member


    Thanks Done
     


Share This Page