• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
foliage

foliage

GMTDateFromWIBTimeZone

when you need your local date equivalent to be in GMT
Public
Like
GMTDateFromWIBTimeZone
Home
Code
2
README.md
main.ts
Branches
2
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
…
Viewing readonly version of main branch: v13
View latest version
README.md

dateWithWIBTimeZone

by default will return a string of date in GMT, offset with WIB timezone.

required argument: date, can be a string, number (Unix timestamp), or Date instance

optional arguments: timeZone: string (e.g. "Asia/Jakarta"), dateStyle and timeStyle both take the value of "medium" (default), "full", "long", or "short"

usage:

Create val
import { offsetDate } from "https://esm.town/v/foliage/dateWithWIBTimeZone/main.ts"; const dateInGMT = offsetDate(dateInMyTown);
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.