CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account
You are here: Home / GizmoBlog / MMBasic Language / Programming, and Debugging / DATE$

DATE$

DATE$ = “DD-MM-YY”
DATE$ = “DD/MM/YY”

Set the date of the internal clock/calendar.

DD, MM and YY are numbers, for example: DATE$ = “28-2-2011” The date is set to “1-1-2000” on power up.

With a CGCOLORMAX the current date will be automatically set on power up because of the RTC hardware.

DATE$

Returns the current date based on MMBasic’s internal clock as a string in the form “DD-MM-YYYY”. For example, “28-02-2011”.

The internal clock/calendar will keep track of the time and date including leap years.

REAL-TIME CALENDAR/CLOCK

You can get the current date and time using the DATE$ and TIME$ functions and you can set them by assigning the new date and time to them. Hardware (CGCOLORMAX) with the battery backed clock will never loose the time. On Maximites without RTC hardware (CGMMSTICK) the calendar will start from midnight 1st Jan 2000 on power up.

See also:

DATE$

TIME$

Applies to:

CGCOLORMAX

CGMMSTICK

CGMICROBOARD

CGMICROMITE

Leave a Reply Cancel reply

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

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2023 · Generate Pro Theme on Genesis Framework · WordPress · Log in