# How to read current time and current date?

Use SMILE's com.iteration3.smile.TimeService interface to access time.

Usage:

 grab[TimeService].now //to read the current time

Examples:

  • to read current date:grab[TimeService].todayAtIndia
  • to read date at a given time zone: grab[TimeService].todayAt(TimeZone.getTimeZone("CAT"))
  • to read date at local time-zone: grab[TimeService].todayAtLocal
  • to read date at GMT: grab[TimeService].todayAtGMT