ee.Date.serialize

Returns the serialized representation of this object.
Usage Returns
Date. serialize ( legacy ) String
Argument Type Details
this: computedobject
ComputedObject The ComputedObject instance.
legacy
Boolean, optional Enables legacy format.

Examples

Code Editor (JavaScript)

 var 
  
 date 
  
 = 
  
 ee 
 . 
 Date 
 ( 
 '2021-4-30' 
 ); 
 print 
 ( 
 'Serialized representation of ee.Date' 
 , 
  
 date 
 . 
 serialize 
 ()); 

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

 import 
  
 ee 
 import 
  
 geemap.core 
  
 as 
  
 geemap 

Colab (Python)

 date 
 = 
 ee 
 . 
 Date 
 ( 
 '2021-4-30' 
 ) 
 display 
 ( 
 'Serialized representation of ee.Date:' 
 , 
 date 
 . 
 serialize 
 ()) 
Create a Mobile Website
View Site in Mobile | Classic
Share by: