Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7503975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:24:39+00:00 2026-05-29T21:24:39+00:00

I have a file which gets created/modified on a PST machine. But when I

  • 0

I have a file which gets created/modified on a PST machine. But when I am accessing this file from an Indian standard time, the Modified date will be returned according to the current system time zone. (As explained here) Is there any way I can get this date with respect to the time zone provided

var WshShell = Sys.OleObject("WScript.Shell");
var fso = new ActiveXObject("Scripting.FileSystemObject");           
var objFile = fso.GetFile("c:\\abc.txt");
var date = objFile.DateLastModified + "";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:24:41+00:00Added an answer on May 29, 2026 at 9:24 pm

    Yes, you do this with the DateDiff function in VBS:

    http://www.devguru.com/technologies/vbscript/quickref/datediff.html

    DevGuru Info

    DateDiff(Interval, Date1, Date2, FirstDayofWeek, FirstWeekofYear)
    
    The DateDiff function calculates the amount of time between two different dates.
    There are three mandatory arguments.
    
    Interval
    
    The Interval argument defines the the type of time interval you wish to use to
    calculate the time difference.
    
    Only the following settings can be used. You must place the setting inside a
    pair of double quotes.   
    
    | SETTING | DESCRIPTION  |
    |:--------|:-------------|
    | YYYY    | Year         |
    | Q       | Quarter      |
    | M       | Month        |
    | Y       | Day Of Year  |
    | D       | Day          |
    | W       | WeekDay      |
    | WW      | Week Of Year |
    | H       | Hour         |
    | N       | Minute       |
    | S       | Second       |
    

    In javascript you can do it like this:

    How to calculate date difference in javascript

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a library which reads the app.config file and gets the type
I have a class which get all the bytes from a file, then it
I am trying to generate a CSV file, which gets created perfectly except for
I have recently put together a JWS application which gets it's argument from a
I have a file which is an XML representation of some data that is
I have a file which has multiple columns, whitespace separated. e.g: data1 data2 data3
I have .zip file which contain csv data. I am reading .zip file using
Assume you have a file which has been committed in your Git repo. You
I have one file in my project, (the readme file,) which I would like
I have an excel file which has more than 65536 rows. However, I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.