How is it possible to split (parse) the YYMMDD date value (eg. from field) into three different values (or fields) that will contain YY, MM, DD in particular?
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/a_2UB0hRpIk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f39090c4-7bad-4b85-a3ae-5eaa31e62d0b%40googlegroups.com.
I'm using Date Picker plugin (https://kixam.github.io/TW5-datePicker/ ) to get a date in field (format YYMMDD), but for further processing I need to separate the days, months and years eg. into special fields.
So, when a date is picked, the date should be separately represented in 3 fields, not in one.
I'm using Date Picker plugin (https://kixam.github.io/TW5-datePicker/ ) to get a date in field (format YYMMDD), but for further processing I need to separate the days, months and years eg. into special fields.
So, when a date is picked, the date should be separately represented in 3 fields, not in one.Thnx!
On Tue, Oct 31, 2017 at 4:16 PM, PMario <pmar...@gmail.com> wrote:
On Tuesday, October 31, 2017 at 3:14:04 PM UTC+1, Gordan Nia wrote:How is it possible to split (parse) the YYMMDD date value (eg. from field) into three different values (or fields) that will contain YY, MM, DD in particular?Why don't you create the stuff in a way that you need?Can you describe, what you want to achieve? So we may be able to give some hints, to create the whole stuff needed at creation time.-m
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/a_2UB0hRpIk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f39090c4-7bad-4b85-a3ae-5eaa31e62d0b%40googlegroups.com.
--
GordaN
I made a set of macros some time ago, as I use the same plugin. I have fields with standard TW dates though: YYYYMMDD...
https://tid.li/tw5/hacks.html#%24%3A%2Fplugins%2Ftelmiger%2Flib%2Fdates-then
Maybe you can adapt these? If you are not familiar with macros, please ask again (answers might take some time).
All the best!
Thomas
eg;
<$view field="created" format="date" template="DDD DDth MMM YYYY"/>
DD: <$view field="created" format="date" template="0DD"/>
MM: <$view field="created" format="date" template="0MM"/>
YY: <$view field="created" format="date" template="YY"/>
<$wikify name=month text='<$view field="created" format="date" template="0MM"/>'>
<$button>Set Fields
<$action-setfield $field=month month=<<month>>/>
</$button>
</$wikify>