Menu

prevent freeplane from completing a full datetime value

C Chiu
2016-12-20
2016-12-23
  • C Chiu

    C Chiu - 2016-12-20

    When i use Control-T to insert a date, it just inserts the date into a node. Just want I want. If I enter in the same value, it completes the date and time in that node. How do I stop that bevavior if I only want the date to be inserted?

    Thanks

     
  • Ken Hill

    Ken Hill - 2016-12-21

    Here it only results in the date being insert into the node. Can you spell out the individual steps you are using or show in a video? I got lost at "if I enter in the same value".

     
  • C Chiu

    C Chiu - 2016-12-22

    Sure Ken.
    On a new node, enter Control-T, Insert a date by selecting a date from the popup, 12/22/16, and then click Close. (Hitting Esc to close this modal window would be much more convenient)
    Node contains 12/22/16 - which is good.
    Now edit that date in any way - like changing the date to 12/22/17 and hit ENTER, the node displays
    12/22/17 12:00 AM
    I don't want the TIME value displayed 12:00 AM, I only want 12/22/17

    OR

    if you enter this into a node
    12/22 and hit ENTER, it is replaced by

    12/22/16 12:00 AM
    Do I always have to enter this as '12/22 to prevent this?

     
    • Ken Hill

      Ken Hill - 2016-12-23

      Now edit that date in any way - like changing the date to 12/22/17 and hit ENTER, the node displays
      12/22/17 12:00 AM

      There must be some setting that is different on my computer vs yours. When I follow the instructions, I do not get the time part like you do -- just the date : 12/26/17.

      Maybe the date setting is in your OS. Windows 10 has date settings. (press windows key, then type "date" and choose "date and time settings".

      In other programs that allow you to inset the date (not sure which -- msWord? etc) how does the date show up?

       
    • Volker Börchers

      The recognition of value types (dates, numbers) of nodes enables some pretty fancy things with formulas (https://www.freeplane.org/wiki/index.php/Formulas). You can configure it in the preferences under Behavior. To safe single nodes from being interpreted prepend a ' (single quote) before the text (as in Excel).

      Volker

       
  • C Chiu

    C Chiu - 2016-12-23

    I have seen the same behavior in Win XP, 7 and 10. All PCs do the same. What did you want me to check in the windows date time setting?
    I inserted the date from MS Word's Menu option - insert Date & Time: and it does not add the time unless you specifically select it from the available formats.

     
  • anatolica

    anatolica - 2016-12-23

    You can manage the format of time & date to enter from the combo box below the calendars (see the screenshot attached). The only thing is, you need to select this setting whenever you'd like to enter time only (unless there is an option to set the defaults for entering time & date that I am not aware of).

    It should be possible to close the window by pressing Esc, though.

    Aycae

     
  • Dimitry Polivaev

    Hello,

    the user has spotted a bug which was responsible for generation of wrong scanner.xml file which content lets dates be mistaken for date-with-time. I have fixed it in https://github.com/freeplane/freeplane/commit/1ce0dec8ef80d6ef14575015ec4f98e259f340f0

    The fix can not repair already generated scanner.xml files.
    All users should find their scanner.xml in freeplane user configuration directory, open it in a text editor and replace string <parser type="datetime" style="date" by <parser type="date" style="date" in all lines where date is entered without time that means where value of attribute format does not contain letters H and m

    Regards,
    Dimitry

     
  • C Chiu

    C Chiu - 2016-12-23

    Hi Dimitry,

    It took me a while to find that scanner.xml file.
    Found it under
    C:\Users\meuser\AppData\Roaming\Freeplane\1.5.x
    I made the changes and great!
    Now when I enter a partial date or modify the date on a node, it does not convert it to a datetime!
    This has been frustrating me for years!

    Aycae - I never noticed that drodown option was there.
    Thanks for that tip.

    A great Christmas gift from the freeplane community :)
    Thanks again.

    Colin