Menu

Get current Date and Time

2023-11-29
2023-11-30
  • Abdullah Noman

    Abdullah Noman - 2023-11-29

    Hello,

    I am trying to have a field( AttributeDateandTime) for one of my class where when the object is created the "import_date" field will be filled automatically by current date and time. I have written a php function in the methods section but its not working . Here is the SS of the function and the class,
    [cid:image001.png@01DA22D0.71D2BFF0]
    [cid:image002.png@01DA22D0.81B892F0]

    Please let me know how can I accomplish this.

    Abdullah Al Noman

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-11-29

    Have you verified whether your method gets executed?

    At first sight, it looks okay. Although it might be missing a delta attribute on an XML node, as we don't see the full version of your modification.

     
  • Abdullah Noman

    Abdullah Noman - 2023-11-30

    Hello Jeffrey, thanks for your response. I noticed the method wasnt executing, I fixed it and now its working fine.

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.