Date format

Here is an easy tip about the date format.   Source code   Format   Parameters (1) date … Date value. (2) timezone … Timezone. This parameter requires like “GMT+2:00”. (3) format … Date format.   Responses string

Today’s date and time

Here is an easy tip how to get the current date & time.   Source code   Format new Date()   Parameters None   Responses string   How to change the time zone? The value depends the time zone setting of the Project properties. If you want to config it, please access “File” -> “Project … Read more Today’s date and time

Backward match

Here is an easy tip about the backward match.   Source code   Steps to check the backward match Google Apps Script doesn’t supply the backward match function. Thus you have to code to do achieve it. The followings are steps to check the backward match; (1) Get the length of str1. (2) Get the … Read more Backward match

Forward match

Here is an easy tip about the forward match.   Source code   Format   Returns The value2 is found within value1 then it returns the start position number. On the other hand, if it is not found, it returns -1. → If it returns 0, it means the value2 is included within the beginning … Read more Forward match

Particle match

Here is an easy tip about the particle match.   Source code   Format   Returns The value2 is found within value1 then it returns the start position number. On the other hand, if it is not found, it returns -1.   What is the difference between “===” and “==”? The triple-equal “===” is preferred … Read more Particle match

Exact match

Here is an easy tip about the exact match.   Source code   Format   How to check not the exact match? Here is the sample.   What is the difference between “===” and “==”? The triple-equal “===” is preferred to be used instead of the double-equal “==”. I’ve posted about this in the following … Read more Exact match

string to integer

Here is an easy tip how to convert string value into integer format.   Source code   Format   Parameters value … The original value   Returns integer   Convert alphabet or any characters into integer format? If the original value is alphabet or symbol, it returns “NaN”.