WeirdGeek

Data Science | Machine Learning | Automation

  • Data Analytics
  • Python
  • Data Science
  • Google Apps Script
  • Machine Learning
  • Artificial Intelligence
  • SQL Server

16/09/2019 By WeirdGeek Leave a Comment

Google Apps Script Code to find the days of the week

Google Apps Script is no doubt the best when you are trying to automate the boring stuffs that you do on day to day basis. Google has created a complete ecosystem including Google Big Query, Google Drive, Google Colab and Google Apps Script by using these you can fully utilize the power of cloud and also without having the worry related to system downtime as all these services are in the cloud. Here in this post let’s see a small Google Apps Script code to find the Days of the week as a float number.

Google Apps Script Code to find the days of the week

 

Below is the Google Apps Script Code to find the days of the week:

function GetTodaysDay() {
  var Todaysdate = new Date();
  var DayAsFloat = Todaysdate.getDay();
Logger.log(DayAsFloat);
} 

The above code will help you out when you want to perform some kind of calculation based on the days of the week. For me, i just want to rename the files i received on specific days out of all the days in a week.

To get more detailed knowledge about Google Apps Script, you can check the official website. Also if you want to explore more codes/posts related to Google Apps Script on our website, then you can find it here.

If you have any questions or if you need any help please get in touch with me using the comment section below.

Related posts:

  1. Rename files using Google Apps Script on Google Drive
  2. Google Apps Script to search a string in Google Sheet [Part II]
  3. Unzip files using Google Apps Script on Google Drive
  4. Find and Copy files of specific types using Google Apps Script

Filed Under: Google Apps Script Tagged With: Automation, code, Google, Google Apps Script, Google Drive

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe to my Blog !!

Enter your email below to subscribe my blog and get the latest post right in your inbox.

  • Home
  • Terms
  • Privacy
  • Contact Us

Copyright © 2025 · WeirdGeek · All trademarks mentioned are the property of their respective owners.